Bot Whatsapp Termux Github May 2026

pm2 list                # View all processes
pm2 logs whatsapp-bot   # View logs
pm2 restart whatsapp-bot # Restart bot
pm2 stop whatsapp-bot    # Stop bot
pm2 delete whatsapp-bot  # Remove bot

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.


# After installation, update packages
pkg update && pkg upgrade -y

Always test with a dummy WhatsApp account. Do not spam. Respect privacy. Use these tools to learn JavaScript/Python automation, not to violate terms of service.


Ready to start? Open Termux, copy one of the GitHub links above, and build your first WhatsApp bot today. The full source code is waiting for you—just one git clone away.

Introduction

WhatsApp bots have become increasingly popular for automating tasks, providing customer support, and even entertainment. In this article, we'll explore how to create a WhatsApp bot using Termux, a terminal emulator for Android, and GitHub, a web-based platform for version control and collaboration.

Prerequisites

Step 1: Set up Termux

Step 2: Create a WhatsApp bot

const  Client  = require('whatsapp-web.js');
const client = new Client(
  // Your WhatsApp number with country code (e.g., +14155552671)
  phone: 'YOUR_PHONE_NUMBER',
  // Your WhatsApp bot's name
  name: 'My WhatsApp Bot',
);
client.on('message', (message) => 
  console.log(`Received message: $message.body`);
  // Process incoming messages here
);
client.start();

Replace YOUR_PHONE_NUMBER with your WhatsApp number and My WhatsApp Bot with your bot's name.

Step 3: Connect to WhatsApp

Step 4: Host your bot on GitHub

Step 5: Automate your bot

Tips and Variations

Conclusion

In this article, we've created a basic WhatsApp bot using Termux and GitHub. With these steps, you can automate tasks, provide customer support, or even build a simple chatbot. Remember to explore more advanced features and libraries to enhance your bot's capabilities.

Resources

Running a WhatsApp bot through Termux using scripts from GitHub is a popular way to automate tasks like sticker making, auto-responding, and media downloading directly from your Android device. 🛠️ Essential Setup Requirements

Before you can run any GitHub script, you need to prepare the Termux environment with these core tools: Git: To clone (download) the bot repositories.

Node.js: Most modern WhatsApp bots use the Baileys or whatsapp-web.js libraries, which require Node.

FFmpeg: Necessary for bots that handle media, such as converting videos to GIFs or stickers. Libwebp: Required specifically for sticker generation. 🚀 Step-by-Step Installation bot whatsapp termux github

To get started, open Termux and run these commands one by one: Update Packages: pkg update && pkg upgrade Install Tools: pkg install git nodejs ffmpeg libwebp -y Clone a Bot: git clone [GITHUB_URL] Enter Directory: cd [REPOSITORY_NAME] Install Dependencies: npm install Start the Bot: node index.js (or npm start) 📦 Top GitHub Repositories for Termux

You can find various bot scripts on GitHub by searching for these popular "bases":

Termux-whatsapp-bot: A specialized script for creating stickers from photos and videos.

WA-BOT Base: A versatile multi-device (MD) bot supporting text-to-speech and media conversion.

Knightbot-MD: Known for easy deployment and "Pair Code" linking, which avoids the need for a second device to scan a QR code. ⚠️ Important Considerations

Linking: You will usually need to scan a QR code using the "Linked Devices" feature in your WhatsApp settings.

Session ID: Some bots, like those from GlobalTechInfo, use a "Session ID" so you don't have to re-scan every time the app restarts.

Ban Risk: WhatsApp's terms of service generally discourage unofficial bots. To stay safe, avoid spamming or using the bot in too many large groups simultaneously.

💡 Pro Tip: Keep your bot running in the background by using the termux-wake-lock command to prevent Android from killing the process when the screen is off.

When choosing a WhatsApp bot on GitHub to run via Termux , you are likely looking for a "userbot" or "self-bot" that provides automation, media management, and group utility features directly from your mobile device. These bots generally leverage the Baileys library to interface with WhatsApp Web. Popular WhatsApp Bots for Termux (GitHub)

: Known as a "next generation" multi-device bot, it focuses on high-speed performance and a wide array of media tools and group utilities. It features a sleek console interface and a dynamic plugin loader, making it highly customizable for power users.

: A popular open-source option that is easy to deploy on Termux. It includes unique features like country-specific pairing codes for easier connection and a simple configuration system. Luna-Botv6

: A multifunctional bot that stands out for its "no-code" command creation. It includes over 15 mini-games, a virtual economy system, and 24/7 uptime capabilities when configured correctly. AI-Jarvis-WhatsApp-Bot

: Best for users looking to integrate AI features (like GPT) into their chats. It provides clear Termux installation steps and focuses on being a personal assistant rather than just a group manager. Installation Overview for Termux

Most bots follow a similar pattern for setup within the Termux environment: Update Environment pkg update && pkg upgrade -y Install Essentials pkg install nodejs git ffmpeg imagemagick -y Clone Repository git clone Install Dependencies cd && npm install Launch & Link

(This usually generates a QR code to scan with your WhatsApp "Linked Devices" setting). Critical Review Considerations Multi-Device Support

: Ensure the repository is labeled "MD" (Multi-Device) so it can stay active even if your phone goes offline. Safety Warning

: Using third-party bots can violate WhatsApp's Terms of Service, which may lead to account bans. It is highly recommended to use these on a secondary/disposable phone number. Maintenance

Creating a WhatsApp Bot using Termux and GitHub: A Step-by-Step Guide pm2 list # View all processes pm2 logs

In recent years, WhatsApp has become an essential platform for communication, with billions of users worldwide. With the rise of chatbots, many developers have started creating automated bots to interact with users on WhatsApp. In this article, we will explore how to create a WhatsApp bot using Termux, a popular Android terminal emulator, and GitHub, a web-based platform for version control and collaboration.

Prerequisites

Before we dive into the process, make sure you have the following:

Step 1: Setting up Termux

Termux is a terminal emulator that allows you to run Linux commands on your Android device. If you haven't installed Termux yet, download it from the Google Play Store or F-Droid.

Once installed, open Termux and grant the necessary permissions. You will see a command-line interface where you can type commands.

Step 2: Installing Dependencies

To create a WhatsApp bot, we need to install some dependencies. Run the following commands in Termux:

pkg update
pkg upgrade
pkg install nodejs
pkg install git

These commands update the package list, upgrade the packages, and install Node.js and Git.

Step 3: Creating a GitHub Repository

Create a new repository on GitHub and initialize it with a README file. You can do this by following these steps:

Step 4: Cloning the Repository

In Termux, navigate to the directory where you want to clone the repository. Run the following command:

git clone https://github.com/your-username/your-repo-name.git

Replace your-username and your-repo-name with your actual GitHub username and repository name.

Step 5: Creating the WhatsApp Bot

We will use the whatsapp-web.js library to create our WhatsApp bot. Run the following command in the repository directory:

npm install whatsapp-web.js

Create a new file called bot.js and add the following code:

const  Client  = require('whatsapp-web.js');
const client = new Client();
client.on('ready', () => 
  console.log('Client is ready!');
);
client.on('message', (message) => 
  if (message.body === 'hello') 
    message.reply('Hello! How can I assist you today?');
);
client.start();

This code creates a basic WhatsApp bot that responds to the message "hello."

Step 6: Configuring the Bot

To configure the bot, you need to create a config.json file in the repository directory. Add the following code:


  "number": "your-phone-number",
  "password": "your-whatsapp-password"

Replace your-phone-number and your-whatsapp-password with your actual WhatsApp phone number and password.

Step 7: Running the Bot

Run the bot using the following command:

node bot.js

The bot will start and connect to WhatsApp. You can test the bot by sending a message to the bot's phone number.

Step 8: Deploying the Bot

To deploy the bot, you can use a service like Heroku or Vercel. Create a new file called Procfile and add the following code:

web: node bot.js

This file specifies the command to run when deploying the bot.

Step 9: Integrating with GitHub Actions

To automate the deployment process, you can use GitHub Actions. Create a new file called .github/workflows/deploy.yml and add the following code:

name: Deploy Bot
on:
  push:
    branches:
      - main
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
- name: Install dependencies
        run: npm install
- name: Deploy bot
        run: node bot.js

This file specifies the workflow to deploy the bot when pushing code to the main branch.

Conclusion

In this article, we created a WhatsApp bot using Termux, GitHub, and Node.js. We set up a GitHub repository, cloned it to Termux, and created a basic WhatsApp bot. We then configured the bot, ran it, and deployed it using GitHub Actions.

This is just a basic example to get you started. You can extend the bot's functionality by adding more features, such as natural language processing, machine learning, or integrating with other services.

Additional Resources

"WhatsApp Bot using Termux – GitHub Setup Guide"


✅ Termux installed from F-Droid
✅ Node.js and packages installed
✅ Bot cloned from GitHub
✅ Dependencies installed
✅ Configuration file edited
✅ QR code scanned successfully
✅ Bot connected and responding
✅ PM2 configured for 24/7 operation
✅ GitHub repository set up (optional)
✅ Battery optimization disabled


npm install axios         # HTTP requests
npm install moment        # Date formatting
npm install chalk         # Colored console logs
npm install mongoose      # MongoDB connection