AHMEDX
Guide

Mega MD WhatsApp Bot: Features, Session ID, Pairing Code and Deployment Guide

MEGA MD is a WhatsApp Multi Device bot published on GitHub by the GlobalTechInfo organization and credited to Qasim Ali. It runs on Node.js 20 with the Baileys library, carries an MIT license, and its README documents more than 250 commands, automatic plugin loading, five storage backends, group protection and a role system. The Session ID comes from the project pairing website through a pair code or a QR code, and the repository carries setup material for a VPS, Termux, Windows WSL, Replit, Heroku, Render, Railway, Koyeb, Fly.io, Docker and Pterodactyl panels. Every claim in this guide was checked against the repository itself.

By AHMED X · November 6, 2026 · Last verified November 6, 2026

About

What Is MEGA MD WhatsApp Bot?

What the project is, who publishes it, what it runs on, and what its documentation covers.

MEGA MD is a third party WhatsApp Multi Device bot project published on GitHub by the GlobalTechInfo organization. The repository license page credits Qasim Ali as the maker, and the bot runs on Node.js 20 or higher with the Baileys library. The repository carries a LICENSE file under the MIT License.

The README presents the bot as a command and plugin driven automation tool: group administration, privacy management, moderation, media utilities, AI conversations, polls, games, scheduled messages and automatic replies. Its badges list version 6.0.0, and its feature table is the source of the feature cards in the next section.

The documented requirements are Node.js 20 or higher, npm 8 or higher, Git, FFmpeg, Libvips and Libwebp. The README also carries a warning in its requirements section: never use your personal WhatsApp number for the bot, and always use a dedicated number.

The repository is organised around a plugins folder that holds the command files, a sample.env configuration file that users copy to .env, and ready made setup files for several hosting platforms, each covered in the deployment section below.

Features

MEGA MD WhatsApp Bot Features

Every card below comes from the Features table in the project README and was checked against the repository files, including the plugins folder and the sample configuration.

More Than 250 Commands

The README documents more than 250 commands across group management, privacy, moderation, fun, AI, media and utilities. The plugins folder of the repository holds the command files, 267 plugin files at the last check.

Automatic Plugin Loading

Plugin files placed in the plugins folder load on startup with zero registration, as the README documents. The README also publishes a plugin template that each file follows, with a command name, aliases, category and handler.

Five Storage Backends

Data can be stored in MongoDB, PostgreSQL, MySQL, SQLite or plain JSON files. Set one database address in the configuration; when all are empty, JSON file storage is used automatically.

Group Protection

The README lists anti spam protection, a bad word filter, link detection and anti tag abuse controls for groups.

Role System

Four permission levels, Owner, Sudo, Admin and User, control who can run which commands, and individual plugins can also require owner, sudo or group admin access.

AI Chatbot

A per chat AI conversation mode is documented in the feature table, and separate AI plugin files ship in the repository, including GPT, Llama and Mistral plugins.

Privacy Controls

The README documents full WhatsApp privacy management through commands.

Polls and Voting

Create polls with live vote tracking in groups. A poll plugin file ships in the repository plugins folder.

Broadcast

Send one message to all groups or all DM contacts at once. The repository ships broadcast plugin files for groups and for DM contacts. Use this responsibly, because unsolicited bulk messaging can get a number restricted.

Automatic Replies

Configurable trigger based automatic responses, with support for a {name} placeholder inside the reply text. Reply management plugin files ship in the repository.

Games

TicTacToe and more games are built in, and a TicTacToe plugin file ships in the repository.

Disappearing Messages

Set per chat or default disappearing message timers through commands. A disappearing messages plugin file ships in the repository.

Scheduled Messages

The feature table also lists scheduled messages, sent at a time you describe in natural words.

Session ID

How to Get the MEGA MD Session ID

A Session ID is the authentication information the bot uses to connect to WhatsApp without scanning a new QR code every time. The README documents three routes: a pair code on the project pairing website, a QR code on the same website, and pairing from the terminal. The pairing website was checked on the last verified date and loads with Pair Code and QR Code tabs.

01

Open the Pairing Website

Open the session generator linked from the README at mega-pairing.onrender.com. It offers a Pair Code tab and a QR Code tab.

02

Pair Code: Enter Your Number

On the Pair Code tab, enter the WhatsApp number for the bot with its country code, for example 923001234567, and click Generate Pair Code.

03

Pair Code: Link in WhatsApp

The site shows an 8 character code, in the format of the README example J38K-4PNS. On the phone, open WhatsApp, then Linked Devices, then Link a Device, then the link with phone number option, and enter the code.

04

Copy the Session ID

After linking, the website displays the Session ID. Copy it completely: the README and the troubleshooting section state that a valid ID begins with GlobalTechInfo/MEGA-MD_ and the rest is your own generated value.

05

QR Code Route

On the QR Code tab, wait for the QR code, scan it through WhatsApp Linked Devices, and copy the Session ID shown after authentication.

06

Terminal Pairing Route

You can also pair without the website: leave SESSION_ID empty in the configuration and set PAIRING_NUMBER to your number. On startup the bot prints an 8 character pairing code in the terminal, and you enter it in Linked Devices within 60 seconds.

07

Keep It Private

Add the Session ID to your .env file or host secrets and keep it secret. Never share it publicly, never upload your .env file to a public repository, and never send credentials to unknown people.

Deployment

How to Deploy MEGA MD WhatsApp Bot

The README documents deployment for many environments, and the repository ships the matching setup files: a Dockerfile, heroku.yml and app.json, render.yaml, railway.json, fly.toml, .replit and replit.nix, plus installer scripts in the lib folder. Every route needs a Session ID and an OWNER_NUMBER written without a plus sign. Check any hosting provider for current pricing and terms, and do not assume a route is free.

01

VPS With the One Line Installer

On an Ubuntu VPS, the README gives a one line installer that runs lib/install.sh from the repository. It installs Node.js 20, FFmpeg, Libvips, Libwebp and PM2, clones the repo, builds the app and sets up data files. Afterwards edit /root/MEGA-MD/.env, then start with pm2 start dist/index.js --name mega-md, and finish with pm2 save and pm2 startup.

02

VPS Manual Route

The README also gives manual steps: install Node.js 20 from NodeSource with Git, FFmpeg, Libvips, Libwebp and build tools, clone the repository, run npm install, copy sample.env to .env and fill it in, then keep the bot alive with PM2.

03

Termux on Android

The README recommends a full Linux environment inside Termux through proot-distro with Ubuntu. Inside Ubuntu you install the dependencies, clone the repository, run npm install, copy sample.env to .env, and start with npm start. The README explains using tmux so the bot keeps running after Termux closes.

04

Windows WSL

In a WSL Ubuntu terminal the steps mirror the VPS manual route: Node.js 20, Git, FFmpeg, Libvips, Libwebp and build tools, then clone, npm install, configure .env and npm start.

05

Replit

The repository ships .replit and replit.nix files. Import the repository from GitHub, add SESSION_ID and OWNER_NUMBER in the Secrets tab, and click Run. The README notes that free Replit instances sleep after inactivity, so continuous uptime is not guaranteed.

06

Heroku

The repository ships heroku.yml and app.json for Docker based deployment. Create the app, set the container stack, set SESSION_ID and OWNER_NUMBER as config values, and push the code. The README recommends adding a MongoDB address because the Heroku filesystem is temporary and data is lost on restart.

07

Render

The repository ships render.yaml for Blueprint deployment. Fork the repository, create a new Blueprint on Render, connect the fork, set SESSION_ID and OWNER_NUMBER, and deploy. The README advises using a database for persistent storage on the free tier.

08

Railway

Create a new project on Railway, choose Deploy from GitHub Repo, select your fork, and add SESSION_ID and OWNER_NUMBER in the Variables tab. Railway builds the app with the included Dockerfile, and a railway.json file also ships in the repository.

09

Koyeb

Fork the repository, create an app on Koyeb with GitHub as the source, select the fork, set SESSION_ID and OWNER_NUMBER, and deploy. One correction to the README: it says Koyeb reads a koyeb.yaml file, but no file of that name is present in the repository at the last check, so review the app settings Koyeb detects before deploying.

10

Fly.io

The repository ships a preconfigured fly.toml. The manual route in the README is fly launch --no-deploy, then fly secrets set for SESSION_ID and OWNER_NUMBER, then fly deploy, with fly logs to check the result. The Fly configuration enables automatic start and disables automatic stop so the bot keeps running.

11

Docker

For any Docker compatible host, the README gives docker build -t mega-md . and a docker run command that passes SESSION_ID and OWNER_NUMBER and maps port 5000, followed by docker logs to watch startup.

12

Pterodactyl Panels

For Pterodactyl based panels, the README says to create a server with a Node.js 20 or newer egg, upload the files, set the startup command npm install && npm start, and add SESSION_ID and OWNER_NUMBER in the Startup tab. It names Fosshost, Skynode and Optiklink as panel examples.

Commands

MEGA MD WhatsApp Bot Commands and Settings

How commands are organised, which prefixes the bot accepts, and the settings that control who can use them.

MEGA MD commands live in the plugins folder of the repository: each plugin file registers a command with its name, aliases, category and permission flags, and the files load automatically at startup. The README documents the total as more than 250 commands across group management, privacy, moderation, fun, AI, media and utility categories, but it does not print a command by command list with per command permissions, so check the plugins folder of the repository for the exact set in the current version.

The default command prefixes are the dot, the exclamation mark and the slash. They are set as a comma separated list in the PREFIXES value of the configuration, which the sample file shows as PREFIXES=.,!,/ and which you can change to your own choice.

Access is controlled in two ways. The role system assigns Owner, Sudo, Admin and User levels, and individual plugins can demand owner or group admin access. On top of that, COMMAND_MODE selects public or private behaviour: the README configuration table lists public as the default, and in private mode only the owner can use commands.

Other settings documented in the README include BOT_NAME, BOT_OWNER and PACKNAME for identity, TIMEZONE, PORT, and the database addresses MONGO_URL, POSTGRES_URL, MYSQL_URL and DB_URL for the storage backends. Optional API keys for the remove.bg and Giphy services can also be added when you want the features that use them.

Troubleshooting

Common MEGA MD Pairing and Deployment Problems

The checks the README itself gives for the problems readers hit most often, plus the configuration mistakes behind them.

Session ID Not Working

Confirm the ID begins with GlobalTechInfo/MEGA-MD_ and that you copied the complete value from the pairing website. A partial copy is the most common cause.

Pairing Code Expired

A terminal pairing code must be entered within 60 seconds of appearing. Start the process again to print a fresh code.

Bot Not Connecting

Check the Session ID, the linked device connection and the application logs. If the session is broken, the README gives a reset route, npm run reset-session followed by npm start, and warns that resetting can require linking again.

Commands Not Responding

Confirm you are using one of the configured prefixes. If COMMAND_MODE is private, only the owner can run commands. Also confirm OWNER_NUMBER is written without a plus sign.

Data Lost After Restart

Many hosts reset the filesystem on restart or redeploy. Configure a database, for example MongoDB through MONGO_URL, or PostgreSQL, MySQL or SQLite, instead of the default JSON files.

Port Conflict

If port 5000 is busy, start with another port, for example PORT=3000 npm start, and confirm the new port is free.

Official Links

MEGA MD Official Links

The resources checked for this guide: the repository, its README, the pairing website, the plugins folder and the developer organization. Availability checked on the last verified date.

Safety

Is MEGA MD WhatsApp Bot Safe?

The precautions that apply to MEGA MD, including the warnings in its own README and disclaimer.

MEGA MD is an unofficial third party WhatsApp bot project. The README disclaimer states that the project is not affiliated with WhatsApp Inc., tells users to use it responsibly and within the WhatsApp Terms of Service, and states that the developers are not responsible for account bans or misuse.

Use a dedicated number. The README requirements section warns in plain words: never use your personal WhatsApp number for the bot, always use a dedicated number. Unofficial automation can still bring temporary restrictions or a permanent ban, so a separate number limits the damage if that happens.

Protect your Session ID like a password: never share it publicly, never upload your .env file to a public repository, and never type it into a website that is not linked from the project repository. Because plugins load automatically, only add plugin files from sources you trust, and review any plugin code before it joins the folder.

Use the broadcast and automation features responsibly and avoid spam or abusive messaging. If you stop using the bot, remove its connection from WhatsApp Linked Devices.

Alternatives

Free MD Bots You Can Deploy on AHMED X

Want more free MD bots like this? These bots on AHMED X cover the same ground: free deploy, pair-code setup, group and chat automation.

ASTRA X

ASTRA X

WhatsApp MD Bot

Advanced AI-first MD bot with dual AI engines, media downloaders and deep group management.

Geston-MD

Geston-MD

WhatsApp MD Bot

Lightning-fast Baileys multi-device bot with AI chat, group protection and replies in many languages.

CELESTIA

CELESTIA

WhatsApp MD Bot

A polished multi-device WhatsApp bot with a large command library, AI chat and safe group tools.

TOXIC-MD

TOXIC-MD

WhatsApp MD Bot

Lightning-fast WhatsApp bot built on Baileys, made for speed and everyday automation.

SUKUNA-MD

SUKUNA-MD

WhatsApp MD Bot

A modular WhatsApp MD bot with group administration, media tools, protection engines and AI voice replies.

Levanter

Levanter

WhatsApp MD Bot

Multi-device WhatsApp bot packed with group protection, AI chat and a plugin system.

View all bots in the catalog

FAQ

MEGA MD FAQs

Short answers to the questions readers ask most about MEGA MD.

MEGA MD is a third party WhatsApp Multi Device bot published on GitHub by the GlobalTechInfo organization and credited to Qasim Ali. It runs on Node.js 20 with the Baileys library, and its README documents more than 250 commands, automatic plugin loading, group protection, privacy controls, an AI chatbot, polls, broadcasts, automatic replies and games.

Open the pairing website linked from the README, mega-pairing.onrender.com, enter your number with its country code on the Pair Code tab, and click Generate Pair Code. Enter the 8 character code in WhatsApp Linked Devices, then copy the Session ID the site displays. A QR Code tab on the same site and a terminal pairing route are also documented.

The README documents a VPS with a one line installer or manual steps, Termux on Android through proot-distro, Windows WSL, Replit, Heroku, Render, Railway, Koyeb, Fly.io, plain Docker hosts and Pterodactyl panels. The repository ships the setup files for these routes, including a Dockerfile, render.yaml and fly.toml.

The project itself is open source under the MIT License, with a LICENSE file in the repository. Hosting is separate: each platform sets its own prices and free tier limits, and those change over time, so check the provider before you deploy.

Yes. The README documents an automatic plugin system: plugin files placed in the plugins folder load at startup with no registration, and the README publishes a template showing the command, aliases, category and handler shape each file follows. Only add plugins from sources you trust, because they load and run automatically.

Disclaimer

About This Guide

How this guide was prepared.

This article is based on the MEGA MD README and the repository files, including the plugins folder, sample.env and the deployment files, checked on the last verified date. Feature and command totals are stated as the project documents them, and the one place where the README and the repository disagree, the missing koyeb.yaml file, is flagged in the deployment section.

AHMED X provides this article for educational and informational purposes only. AHMED X is not the developer or owner of MEGA MD and does not claim any partnership or official affiliation with GlobalTechInfo or Qasim Ali.

AHMED X is not affiliated with, endorsed by, or sponsored by WhatsApp or Meta. WhatsApp is a trademark of its respective owner. Use unofficial WhatsApp automation at your own risk.

Keep Reading

Related WhatsApp Bot Guides

More free WhatsApp bot guides from the AHMED X blog.

Guide

Nadeen MD WhatsApp Bot: Session ID and Deployment Guide

NADEEN MD is a JavaScript WhatsApp Multi Device user bot published on GitHub under the NADEENbotz account and credited to Nadeen Poorna, who describes it as a bot designed to make things easier and fun while using WhatsApp. The current release in the repository is version 3.0.0, the main file is nadeen.js, and the bot runs through PM2 on a Baileys based connection. Its README documents deployment routes and a Session ID setup, but it publishes no feature list and no command reference, and the pairing pages it links were not loading at the last check. This guide covers only what the repository itself verifies, and says plainly where the documentation stops.

Read the guide
Guide

NovaBot-MD WhatsApp Bot: QR Code, Session ID and Deployment Guide

NovaBot-MD is a JavaScript WhatsApp Multi Device user bot published on GitHub by elrebelde21 and based on the LoliBot-MD project. It is the project most people mean when they search for a Nova MD bot, and no separate project officially named Nova MD could be verified. The repository identifies version 1.1.8, and its README states in Spanish, Sin mantenimiento, which means the project is no longer maintained. There is no pairing website for this bot: connection happens through a QR code shown when you start the bot yourself. This guide covers only what the repository itself verifies, and says plainly where the documentation stops.

Read the guide
Guide

Phoenix MD WhatsApp Bot: Features, Session ID, Pairing Code and Deployment Guide

Phoenix MD is a WhatsApp Multi Device bot published on GitHub by Abhishek Suresh and built with Node.js and Baileys. Almost everything it does is controlled from one configuration file, config.js: automatic message reading, automatic reactions, call rejection, status automation and custom bot information are all settings you switch on or off. The README links a dedicated Session ID website, and that site was checked for this guide and offers two connection routes, a QR code scan and a pairing code. This guide covers the features the configuration file actually documents, the session flow the website presents today, and the deployment routes the README lists, and it says plainly where the documentation stops.

Read the guide
Guide

Prabath MD WhatsApp Bot: Features, Session ID, Pairing Code and Deployment Guide

PRABATH MD is a WhatsApp Multi Device user bot from Sri Lanka, developed by Prabath Kumara and Sachintha Rashan with JavaScript and the Baileys library. Its README documents a large command table covering media downloading, AI chat and image generation, sticker and logo tools, group management and protection features such as antidelete and antiviewonce, plus custom reply and voice reply panels. One fact shapes this whole guide: GitHub currently blocks the original PRABATH MD repository, so every claim here was checked against accessible public copies of the project files, and the three QR login servers and the project website the README lists no longer load. This guide states all of that plainly, together with the documented commands, deployment buttons and configuration the copies preserve.

Read the guide

Deploy Your Own Free WhatsApp Bot Today

Pick a bot from the AHMED X catalog and deploy it free in minutes. No server, no coding.

Browse Free Bots