PyWhatKit is a Python library for automating WhatsApp Web, including sending messages, images, and performing searches. It relies on a web browser to open WhatsApp Web and simulate user actions. Current version is 5.4, with maintenance-focused releases.
pip install pywhatkitVerified import paths — ran on the pinned version, not inferred.
Opens WhatsApp Web in a browser, waits until the given time, and sends a message.
Use numbers only, e.g., '911234567890' for India.
Ensure a graphical desktop environment is available. For headless, consider using a different library like twilio or selenium directly.
Use the new parameters: pwk.sendwhats_image(phone_no, img_path, caption='')
Run: pip install pywhatkit
Update library and ensure import is correct: import pywhatkit; pywhatkit.sendwhatmsg(...)