(WhatsApp Notification Bot included)
AltChat is a secure, private, terminal-style web chat system designed for closed communities. It runs on a Flask + Socket.IO server with custom encoding and real-time features.
This version includes a WhatsApp Notification Bot to alert offline users when they receive a new message.
altchat-project/
βββ altchat/ # Flask-Socket.IO server (AltChat)
β βββ templates/ # HTML files (chat, login, etc.)
β βββ static/ # CSS, JS, fonts
β βββ database/ # SQLite DBs
β βββ app.py # Main server logic
β
βββ whatsapp-bot/ # WhatsApp Notification Bot
β βββ bot.cjs # Node.js bot code
β βββ package.json # Bot dependencies
β βββ package-lock.json
β βββ auth_info/ # WhatsApp session (auto-created)
βββ README.md
- Python 3.10+
- Node.js v18+
- pip (Python)
- npm (Node.js)
- WhatsApp account for pairing
git clone https://github.com/mrgloeckchen/altchat.git
cd altchatcd altchat
pip install -r requirements.txtMake sure
flask,flask_socketio,eventlet,sqlite3, etc. are installed.
cd ../whatsapp-bot
npm installThis installs:
@whiskeysockets/baileysexpresspinoqrcode-terminal@hapi/boom
cd whatsapp-bot
node bot.cjsπ‘ On first launch, a QR code will appear in the terminal. Scan it using WhatsApp β Settings β Linked Devices.
cd ../altchat
python3 app.pyNow visit: π http://localhost:5000
- If a user receives a message while offline,
- AltChat sends a
POSTtohttp://localhost:3000/send - The bot delivers the message via WhatsApp.
β Format:
{
"number": "491234567890",
"message": "New message in AltChat!"
}- Auth system with admin & mod roles
- Offline user tracking
- User-specific color assignments
- Altspracheβ’ transformation system
Make sure .gitignore includes:
node_modules/
auth_info/
__pycache__/
*.db
.env
You can create a start_all.sh script to run both services:
#!/bin/bash
(cd whatsapp-bot && node bot.cjs) &
(cd altchat && python3 app.py)Made with π by @mrgloeckchen Follow on TikTok & Instagram: @mrgloeckchen
MIT β free to use, mod, remix & enhance.

