
Telegram is the quickest channel to get working in OpenClaw: create a bot in BotFather, hand its token to OpenClaw, and you can chat within minutes. Because it is so quick, many people skip a few default safety settings and then find the bot will not talk. Check in the order below and you will almost always find the reason.
OpenClaw is strict with strangers because behind a Telegram bot is not a program that only chats, but an assistant that can read files, run commands and use your API keys. Whoever can talk to it can try to give it orders. The default pairing mechanism makes sure every person who can talk to the assistant is someone you personally approved.
Run three commands first
openclaw channels status --probe
openclaw pairing list telegram
openclaw logs --followThe first shows whether the Telegram channel is connected, the second whether any pairing requests are waiting for you, and with the third left running, send the bot a message and watch what appears in the log.
Common causes
| Symptom | Cause | Fix |
|---|---|---|
| DM the bot and it replies with a pairing code | The default DM policy is pairing; strangers need approval first | openclaw pairing approve telegram CODE |
| Approval says the pairing code is invalid | Pairing codes expire after one hour | Send another message for a new code |
| No response at all in DMs | Wrong token, or the Gateway is not running | Check channels status --probe; if needed openclaw gateway start |
| No reaction when mentioned in a group | The group is not on the allowlist | Add the group ID under channels.telegram.groups |
| No reply in a group unless mentioned | The default is requireMention: true | That is by design; turn it off in that group's settings if you want |
| Only some group messages arrive | The bot has privacy mode on | Turn it off with /setprivacy in BotFather, or make the bot an admin |
| It reacts but stays "thinking" with no content | No model signed in, or the quota is used up | openclaw models status |

Details for groups
- Where the group ID goes: a negative number starting with -100 is a group chat ID and belongs as a key under
channels.telegram.groups, not ingroupAllowFrom, which lists the user IDs allowed to speak. - How to get the group ID: watch
openclaw logs --follow, or use the Bot API's getUpdates. Once the group is allowed, sending/whoami@yourbotin it shows both the user and group IDs. - Re-add the bot after changing privacy mode: after turning privacy mode off in BotFather, remove the bot from the group and add it back for Telegram to apply the change.
- Make sure BotFather is real: the handle must be exactly @BotFather. Impostors use look-alikes to steal tokens.
Where the token comes from
OpenClaw reads the Telegram token in a fixed order: tokenFile in the config first, then botToken, and only then the TELEGRAM_BOT_TOKEN environment variable, which works only for the default account. If changing the environment variable has no effect, the config file probably still holds the old token. Changing the token clears OpenClaw's cached bot identity.

Still not working
Run openclaw doctor, then look at openclaw status --all. If the log shows the message arrived but the assistant never ran, the problem is on the model side; if the message never shows up in the log at all, it is on the Telegram side: token, privacy mode or group permissions.
The DM policies
The DM policy is set in channels.telegram.dmPolicy. The default, pairing, sends strangers a pairing code and lets them talk once you approve. The other common one, allowlist, lets only user IDs listed in allowFrom talk and silently ignores everyone else, not even replying with a code. For a bot only you use, the allowlist is the cleanest.
Long polling and webhooks
OpenClaw can receive Telegram messages in two ways. With long polling the Gateway fetches messages from Telegram itself and needs no public address, so it works on a home computer and is the simplest. With a webhook Telegram pushes messages to your server, which needs a publicly reachable HTTPS address; it responds faster but adds certificates and exposure to worry about. Without a specific need, use long polling.
Tighten permissions in groups
Groups have many people, and anyone may mention the bot. OpenClaw can set per group which tools are allowed, for example lookups only in a group, no running commands or reading files. Our advice: full permissions in your private chat, the bare minimum in groups, and separate settings for work groups and family groups.
The order to troubleshoot in
- Is the channel connected?
openclaw channels status --probe. - Did the message arrive? Watch
openclaw logs --follow. - Is the sender allowed? Check the pairing list and allowlist.
- Did the assistant run? Check
openclaw models status.
Each step in this order rules out a whole class of causes.
My bot token leaked?
Use /revoke in BotFather to kill the old token and get a new one, then update OpenClaw's config.
Can I let everyone talk to the bot directly?
You can change the DM policy, but we advise against it. Behind the bot is an assistant that can run commands; anyone who can talk to it can try to manipulate it.
I use Telegram Web; any difference?
None. BotFather also has a web mini app that works in every Telegram client.
How do I find my Telegram user ID?
In an allowed chat, send /whoami@yourbot and it replies with your user ID. You can also see the sender's ID in the log.



