Delete the session folder and restart:

Have you built a WhatsApp bot on Termux? Share your GitHub repo or experience in the comments below — but always remember to anonymize and secure your code.

A QR code will appear in the terminal. : Tap three dots → Linked Devices → Link a Device → Scan the QR code.

Choose a repository. For this example, let’s use a simple Baileys-based bot (replace URL with actual repo):

Running a WhatsApp bot via Termux is a popular way to automate chats directly from an Android device without needing a dedicated server or PC. By leveraging GitHub repositories, you can deploy pre-built bot scripts that handle everything from automated replies to media downloading.

nano config.js