Hi I need some help configuring my WhatsApp gateway.
The Problem:
Currently, I want my bot to only talk to me on WhatsApp. However, when unauthorized numbers send a message, the bot automatically replies with a message containing a permission code. I want to completely disable this auto-reply behavior and enforce a strict allowlist (similar to what I have set up for Discord with "dmPolicy": "allowlist"), so the bot completely ignores unknown numbers without processing their messages.
My Environment:
- OpenClaw Version: 2026.4.14 * Gateway Mode: local * Primary Model: anthropic/claude-haiku-4-5
Current Config Snippet (openclaw.json):
"channels": {
"whatsapp": {
"accounts": {
"default": {
"enabled": true
}
},
"enabled": true
}
}
Side Note / Additional Question:
In my console logs, I also notice that the WhatsApp gateway disconnects with status 499 and reconnects exactly every 30 minutes due to inactivity. Is this the expected behavior for the local gateway?
How can I update my configuration to properly whitelist my own number and drop all other incoming messages silently? Thanks in advance!