This is a simple usage of pywhatkit library in which one can send a message to any number or schedule it starting from 2 mins to anytime within 12 PM at night.
for sending whatsapp messages through python follow these steps and instructions before running the above python file
Step 1: install the 'pywhatkit' library using terminal.
- In terminal type: 'pip install pywhatkit'
Step 2: log into whatsapp web on your default browser and make sure you remail logger in during the whole process
Step 3: Fill in the Numbeer, message, hour and minutes in the code according to format.
Ins 1: use +91 extension before your desired reciever number in the code
Ins 2: make sure you use 24hrs format
Ins 3: do not use 0 before hrs or mins
ex: if i want to send msg at 05:05AM i would type 5,5 rather than 05,05
Ins 4: run the code atleast 2 min prior to the desired time of sending message.
ex: if i want my message to be sent at 3:45PM i would give time as 15,45 and run the code atleast before or at 3:43PM