Ad Code

How to Send A WhatsApp Message Through Python Code and Schedule.


How to Send a WhatsApp Message Through Python Code and Schedule the message.


Welcome To Codingfizz



Now, let's learn how to send WhatsApp messages through the python program and schedule the message. In this program, we have used a python library named pywhatkit. This library provides us the feature to send msg messages and communicate the WhatsApp chat. This program is just two lines


So, let's start

Firstly We have to install the python library pywhatkit. Type this code in your terminal.

 pip install pywhatkit

Import the library in python.

 import pywhatkit

Now move ahead in the program

 pywhatkit.sendwhatmsg('Contains phone number with Country code',' Message which you want to sent',' Time in 24 hour format',' Minutes')

Complete code of this program:-

 import pywhatkit
 pywhatkit.sendwhatmsg('+91123457890','Welcome to Codingfizz',' 17','15')

Note:- If Error shown no module named flask then install the flask with this code in your terminal.


 

 pip install flask 


Post a Comment

0 Comments

Ad Code