Automate WhatsApp Messages with Python! ????
Amit Sharma
Aspiring DevOps Engineer | Proficient in Docker, Kubernetes, Jenkins, Terraform, Git-GitHub | Deep Learning Enthusiast | Openshift & AWS Cloud Enthusiast | Coding in Python & C++ |
Introduction
Pywhatkit is a Python library that allows you to interact with WhatsApp through automation. With Pywhatkit, you can send messages, images, and videos to your WhatsApp contacts programmatically, making it a powerful tool for automating your messaging tasks. It leverages the web version of WhatsApp to achieve this automation, so you need to have WhatsApp Web running on your device for Pywhatkit to work.
Pywhatkit Library
pip install pywhatkit
Automate WhatsApp message using Python Code
import pywhatkit
pywhatkit.sendwhatmsg_instantly("+91xxxxxxxxxx","Hello,BIRO")
Outcome Result
Code Explanation
领英推荐
import pywhatkit
pywhatkit.sendwhatmsg_instantly("+91xxxxxxxxx", "Hello,BIRO")
We can also schedule messages to be sent at a specific time
import pywhatkit
pywhatkit.sendwhatmsg("+91xxxxxxxxxx","Hello,BIRO , 1,3?")
Conclusion
I'm confident that this article will prove to be valuable, helping you discover new insights and learn something enriching .
thank you : )
Development and Innovation Director at CAMTRACK
7 个月Hello , have tried your code template , it generates the massage but never sends , i have to send the massage manually . Secondly , at each iteration it opens a new tab on the browers to generate the message , is there a work arround this ?
Owner Manager at Internet Experts, inc.
7 个月I need a way to send the message to the group instead of a single number. Suggestions plese.