Bot Whatsapp Termux Github -

pkg update && pkg upgrade -y
pkg install -y git nodejs python ffmpeg wget

Grant storage permission (if needed for media handling):

termux-setup-storage

git clone https://github.com/YOUR_USERNAME/YOUR_BOT_REPO.git
cd YOUR_BOT_REPO

Replace YOUR_USERNAME/YOUR_BOT_REPO.git with the actual repository URL.


pkg install screen -y

npm cache clean --force

Multi-device pairing failed:

Bot disconnects frequently:

# Use reconnect logic in your code
# or use PM2 with auto-restart
pm2 start index.js --name "whatsapp-bot" --restart-delay=5000

Termux storage permission denied:

termux-setup-storage
# Manually allow storage permission in Android settings

termux-setup-storage

npm install -g qrcode-terminal typescript


git clone https://github.com/TheSpex/Whatsapp-bot.git
cd Whatsapp-bot