We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39357e5 commit 4599c01Copy full SHA for 4599c01
Send WhatsApp message.py
@@ -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