: Move into the new directory and install necessary libraries. cd [repo-name] npm install (or bash install.sh if provided)
On your bot's WhatsApp, go to .
It is highly recommended to test and run your bot using a temporary or secondary phone number rather than your primary personal account.
Before beginning the installation, ensure your mobile device and environment meet the following specifications:
In recent years, the ability to automate messaging has evolved from a luxury for big corporations into a fun and practical tool for developers and hobbyists. Whether you want to manage a community, play around with artificial intelligence, or simply automate routine tasks on WhatsApp, a custom bot is the answer. The good news is that you no longer need expensive servers or cloud hosting to build one. By combining an Android application called Termux with the code available on GitHub, you can run a fully functional WhatsApp bot directly from the palm of your hand.
chmod +x ~/.termux/boot/start-bot.sh
pip install -r requirements.txt
: To keep your bot running even after you close the Termux app, you may need to use tools like pm2 or ensure your phone doesn't kill Termux in the background by checking your battery optimization settings. How to Deploy a WhatsApp Bot on GitHub for Free
This comprehensive guide walks you through the entire process, from setting up your mobile environment to launching your bot. Why Use Termux and GitHub for WhatsApp Bots?
To edit the bot’s owner name or prefix, you usually need to edit the config.js or settings.json file: nano config.js Use code with caution. (Press Ctrl+O to save and Ctrl+X to exit.) Pro Tips for Termux Bot Hosting 1. Prevent Termux from Sleeping
: Necessary for bots that handle media, such as converting videos to GIFs or stickers. Libwebp : Required specifically for sticker generation. 🚀 Step-by-Step Installation