mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2024-11-30 15:31:07 +00:00
Create Automate Whatsapp.py
This commit is contained in:
parent
2f187ca18e
commit
5058a86cc5
15
Automate Whatsapp.py
Normal file
15
Automate Whatsapp.py
Normal 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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user