Skip to content

Commit 4599c01

Browse files
authored
Create Send WhatsApp message.py
1 parent 39357e5 commit 4599c01

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Send WhatsApp message.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import pywhatkit
2+
#using exception handling to avoid unprecedented errors
3+
try:
4+
#sending message to receiver using pywhatkit
5+
pywhatkit.sendwhatmsg("+2348050404966","Hello this message sent from Python script",21, 23)
6+
print("Message Successfully Sent!")
7+
8+
except:
9+
#handle exception and printing error
10+
print("An Unexpected Error!")

0 commit comments

Comments
 (0)