A multi-user WhatsApp bot that sends daily Quran pages to groups or private chats with multi-language support (English, French, Arabic).
WhatsApp: +212 698-032924
- 📚 Automatic Daily Quran Pages - Send Quran page images to groups or private chats
- 🌍 Multi-Language - English, French, and Arabic interface
- 👥 Multi-User - Each user manages their own groups independently
- 📱 Daily Wird - Receive Quran pages directly in your private chat
- ⏰ Flexible Scheduling - Multiple daily sending times per group/subscription
- 📄 Batch Sending - Send 1-50 pages per schedule
- 🧙♂️ Setup Wizard - Guided configuration for new groups
- Node.js (v14+)
- PostgreSQL database
- WhatsApp account
git clone https://github.com/XredaX/Quran-Whatsapp-bot.git
cd Quran-Whatsapp-bot
npm installCreate .env file:
DATABASE_URL=postgresql://username:password@host:port/databaseStart the bot:
npm startScan the QR code with WhatsApp, then send any message to the bot to begin.
- Send any message to the bot
- Select your language (1-3)
- Choose "Link a new group"
- Select group from numbered list
- Follow the 4-step wizard:
- Set starting page (1-604)
- Set pages per send (1-50)
- Set schedule time (HH:MM)
- Activate or pause
menuorhelp- Show main menu!language- Change language
- Link a new group - Add a WhatsApp group
- View my groups - Manage existing groups
- Daily Wird (private) - Receive Quran pages in your private chat
- Help - Usage instructions
- Change language - Switch language
The bot auto-creates tables on first run:
whatsapp_id- User's WhatsApp IDlanguage- Preferred language (en/fr/ar)
group_id- WhatsApp group IDuser_id- Owner's WhatsApp IDname- Group namecurrent_page- Next page to send (1-604)pages_per_send- Pages to send each time (1-50)cron_schedules- JSON array of schedulesis_active- Active or paused
user_id- User's WhatsApp IDcurrent_page- Next page to send (1-604)pages_per_send- Pages to send each time (1-50)cron_schedules- JSON array of schedulesis_active- Active or paused
quran-whatsapp-bot/
├── src/
│ ├── config/ # Database
│ ├── handlers/ # Message handlers
│ ├── services/ # Scheduler
│ ├── utils/ # Helpers & translations
│ └── index.js # Entry point
├── quran-images/ # Page images (1.jpg - 604.jpg)
└── .env # Configuration