Open Termux and run these commands sequentially to prepare your environment and install the bot: :
Verify Node.js version:
Save your changes by pressing CTRL + O , then Enter . Exit using CTRL + X . Step 7: Launch the Bot and Scan the QR Code Start the main execution script: npm start Use code with caution.
pkg update && pkg upgrade -y pkg install nodejs git -y
npm install -g pm2 pm2 start index.js --name "wabot" pm2 save pm2 startup
Modern WhatsApp bots use the Multi-Device framework, meaning they connect just like WhatsApp Web.
Open WhatsApp on your main phone, message your bot’s number with: