Skip to content

Instantly share code, notes, and snippets.

@asvechkar
Created June 28, 2023 07:17
Show Gist options
  • Save asvechkar/7f3edf4d409d2485cfe079cfc21fed7b to your computer and use it in GitHub Desktop.
Save asvechkar/7f3edf4d409d2485cfe079cfc21fed7b to your computer and use it in GitHub Desktop.
Автоматизировать сообщения в WhatsApp
pip install pywhatkit
import pywhatkit
# Set the target phone number (with country code) and the message
phone_number = "+1234567890"
message = "Hello, this is an automated WhatsApp message!"
# Schedule the message to be sent at a specific time (24-hour format)
hour = 13
minute = 30
# Send the scheduled message
pywhatkit.sendwhatmsg(phone_number, message, hour, minute)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment