Complete step-by-step guide to set up and run the WhatsApp Number Checker Bot.
Before you begin, ensure you have:
- ✅ Node.js v16 or higher installed
- ✅ npm package manager
- ✅ Telegram account
- ✅ Basic command line knowledge
- Open Telegram and search for @BotFather
- Send
/newbotcommand - Follow the instructions:
- Choose a name for your bot (e.g., "WhatsApp Checker Bot")
- Choose a username (must end with 'bot', e.g., "whatsapp_checker_bot")
- Copy the bot token (looks like:
123456789:ABCdefGHIjklMNOpqrsTUVwxyz)
- Open @userinfobot on Telegram
- Send any message
- Copy your user ID (a number like:
123456789)
git clone https://github.com/YOUR_USERNAME/whatsapp-checker-bot.git
cd whatsapp-checker-botnpm installIf you encounter any errors, try:
npm install --forceOpen bot.js in a text editor and update these lines:
// Line ~18: Bot Token
const TELEGRAM_TOKEN = 'YOUR_TELEGRAM_BOT_TOKEN'; // Paste your token from BotFather
// Line ~19: Admin ID
const DEVELOPER_ID = YOUR_TELEGRAM_ID; // Paste your Telegram ID (as number, no quotes)
// Line ~20: Your Username
const DEVELOPER_USERNAME = '@YOUR_USERNAME'; // Your Telegram usernameWindows:
start.batOr:
node bot.jsLinux/Mac:
node bot.jsYou should see:
🤖 Telegram Bot started (Multi-User Mode)...
👨💻 Developer: @YOUR_USERNAME (YOUR_ID)
✅ Each user will have their own WhatsApp session
- Open Telegram and search for your bot
- Send
/startcommand - You should see the welcome message with buttons
- Click "ربط WhatsApp" (Connect WhatsApp)
- Wait for QR Code to appear
- Open WhatsApp on your phone
- Go to: Settings > Linked Devices
- Click "Link a Device"
- Scan the QR Code
- Click "فحص الأرقام" (Check Numbers)
- Send numbers in this format:
201234567890
966512345678
971501234567
- Wait for results
Sessions are stored in auth_info_baileys/user_CHATID/
To delete a user's session:
# Windows
rmdir /s /q auth_info_baileys\user_CHATID
# Linux/Mac
rm -rf auth_info_baileys/user_CHATIDTo delete all sessions:
# Windows
rmdir /s /q auth_info_baileys
# Linux/Mac
rm -rf auth_info_baileysUse the provided batch file:
clean-sessions.batProblem: Bot is not responding to commands
Solutions:
- Check if the bot token is correct
- Verify the bot is running (check terminal)
- Make sure you're using the correct bot username
- Check if the bot is not blocked by Telegram
Problem: QR Code doesn't show up
Solutions:
- Wait 5-10 seconds
- Click "تجديد QR Code" (Refresh QR)
- Check internet connection
- Restart the bot
Problem: Missing dependencies
Solution:
npm installOr force install:
npm install --forceProblem: WhatsApp disconnects frequently
Solutions:
- Check internet stability
- Don't logout from WhatsApp on phone
- Keep the bot running continuously
- Restart the bot if needed
Problem: All numbers show as inactive
Solutions:
- Verify WhatsApp is connected (check status)
- Ensure number format is correct (no + or spaces)
- Check if WhatsApp account is not banned
- Try with known active numbers first
The bot prints logs to the console. To save logs:
Windows:
node bot.js > bot.log 2>&1Linux/Mac:
node bot.js > bot.log 2>&1Use the admin panel:
- Send
/startto the bot - Click "📈 إحصائيات المستخدمين" (User Statistics)
- View active connections and user data
To update the bot:
git pull origin main
npm installThen restart the bot.
If you encounter issues:
- Check the Troubleshooting section
- Review the README.md
- Contact support:
- Telegram: @P_X_24
- Channel: Raven_xx24
- Group: Raven_26
Your WhatsApp Number Checker Bot is now ready to use!
Next Steps:
- Test with a few numbers
- Share the bot with users
- Monitor the statistics
- Explore admin features
Made with ❤️ by ✘ 𝙍𝘼𝙑𝙀𝙉