Create Automate Whatsapp.py

This commit is contained in:
Victor Jotham Ashioya 2022-10-24 12:29:44 +03:00 committed by GitHub
parent 2f187ca18e
commit 5058a86cc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

15
Automate Whatsapp.py Normal file
View File

@ -0,0 +1,15 @@
# Install PyWhatkit
pip install pywhatkit
# Say you want to send a message
import pywhatkit
# syntax: phone number with country code, message, hour and minutes
pywhatkit.sendwhatmsg('+1xxxxxxxx', 'Message 1', 18, 52)
# Message to a Whatsapp group
import pywhatkit# syntax: group id, message, hour and minutes
pywhatkit.sendwhatmsg_to_group("write-id-here", "Message 3", 19, 2)