- Node.js 20 or higher
Click the button below to fork the Nayan WhatsApp Bot repository to your GitHub account:
For further customization and setup guidance, click the button below:
permission: {
permission: 0: "All users",
permission: 2: "Bot administrators only",
permission: 3: "Bot administrators and group administrators",
}prefix: true (only bot prefix work)
prefix: false (no prefix work)
prefix: 'both' (prefix nonprefix both work)
- Node.js installed on your system
- Git installed (for cloning the repository)
-
Clone the repository:
git clone https://github.com/MOHAMMAD-NAYAN/NAYAN-WHATSAPP-BOT.git cd NAYAN-WHATSAPP-BOT -
Install the dependencies:
npm install
-
Run the bot:
node index.js
https://nayan-whatsapp-bot-paircode.onrender.com
The server provides Pair Code and QR Code login options.
- Open your browser and visit:
https://nayan-whatsapp-bot-paircode.onrender.com
-
Ensure Pair Code mode is selected (toggle at top).
-
Enter your WhatsApp number with country code, e.g.:
88016152*****
-
Click Generate Pair Code.
-
Copy the pair code safely.
⚠️ Do not share this code with anyone.
After pairing, the server will generate a creds.json file.
-
Download
creds.json. -
Place it in the session folder of your bot:
NAYAN-WHATSAPP-BOT/session/creds.json
⚠️ This file contains your WhatsApp credentials. Keep it safe!