WhatsApp Integration
WhatsApp is a high-impact channel, but session stability matters. This guide helps you connect and keep it online.
1) Start the gateway
Start the gateway and open the logs so you can see the QR code prompt.
moltbot gateway --verbose
2) Scan the QR code
When the QR code appears, open WhatsApp on your phone and scan it. The session will store credentials locally.
3) Avoid disconnects
- Keep the gateway running 24/7 on a VPS.
- Use a stable IP and avoid reboot loops.
- Reconnect if you see frequent "Logged Out" messages.
Reconnect Quickly
If the session drops, restart the gateway and rescan the QR code. If you use systemd/launchd, make sure the service restarts automatically.