This Python code is a Whatsapp bot that can be used to send messages on Whatsapp automatically.
The code requires the following Python packages to be installed:
pyautogui
pyperclip
pynput
Setup
Before running the code, make sure to save the image green_dot.png in the same directory where the Python code is saved. This image is used to locate the green dot on the Whatsapp interface that indicates a new message.
Import the required packages and functions. Create a new instance of the Whatsapp class with the desired values for the speed and click_speed parameters. Call the nav_green_dot() method to navigate to the green dot for new message. After navigating to the new message, the bot can be used to send messages automatically by simulating mouse clicks and keyboard inputs.
This code is provided as-is without any warranty. The user assumes all responsibility for the use of this code. The author is not responsible for any damages or losses that may result from the use of this code.