dl-openclaw.is
English
简体中文繁體中文EnglishРусскийفارسی

HomeArticlesChat

When the Telegram bot will not talk

Common reasons a Telegram bot stays silent: pairing not approved, an expired pairing code, the group not on the allowlist, mention required, privacy mode hiding group messages, a wrong token, the Gateway not running, or no model signed in. With commands to check each.

Updated

A doorbell on a brick wall: when nobody answers, first check the bell is wired up
A doorbell on a brick wall: when nobody answers, first check the bell is wired up Paul Sableman, CC BY 2.0

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

Troubleshoot
openclaw channels status --probe
openclaw pairing list telegram
openclaw logs --follow

The 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

SymptomCauseFix
DM the bot and it replies with a pairing codeThe default DM policy is pairing; strangers need approval firstopenclaw pairing approve telegram CODE
Approval says the pairing code is invalidPairing codes expire after one hourSend another message for a new code
No response at all in DMsWrong token, or the Gateway is not runningCheck channels status --probe; if needed openclaw gateway start
No reaction when mentioned in a groupThe group is not on the allowlistAdd the group ID under channels.telegram.groups
No reply in a group unless mentionedThe default is requireMention: trueThat is by design; turn it off in that group's settings if you want
Only some group messages arriveThe bot has privacy mode onTurn it off with /setprivacy in BotFather, or make the bot an admin
It reacts but stays "thinking" with no contentNo model signed in, or the quota is used upopenclaw models status
A finger pressing a doorbell: pairing is you ringing at the door, and the owner has to come and open it
A finger pressing a doorbell: pairing is you ringing at the door, and the owner has to come and open it Alexa LaSpisa, CC BY 2.0

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 in groupAllowFrom, 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@yourbot in 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.

Someone looking down at their phone: the message was sent, and the log shows which link in the chain broke
Someone looking down at their phone: the message was sent, and the log shows which link in the chain broke NeONBRAND neonbrand, CC0

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

  1. Is the channel connected? openclaw channels status --probe.
  2. Did the message arrive? Watch openclaw logs --follow.
  3. Is the sender allowed? Check the pairing list and allowlist.
  4. 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.

Read next

Also worth reading

Topics on this page: OpenClaw Telegram not replying, OpenClaw pairing code, OpenClaw bot silent