First, the honest part: is Telegram an OpenClaw channel?
Telegram is a native OpenClaw channel with the key channels.telegram. Note the docs are explicit that Telegram does not use openclaw channels login telegram — you configure a token and restart the gateway.
Most “OpenClaw + X” write-ups online get this wrong: they paste a channels: block for a tool OpenClaw has no adapter for. OpenClaw accepts that key silently (its config schema allows extra channel keys) and then nothing happens — no token, no webhook, no error. That is the single most common reason a “connected” agent stays silent.
What you can actually build with Telegram
- Give yourself a private phone-based command line for the agent — the fastest personal setup that exists
- Summarise long threads by forwarding them to the bot and asking for the short version
- Run a small team bot in a group where it only answers when mentioned
- Get critical alerts out of a cron job straight to your phone
- Keep the agent one command away while you are away from the desk
How OpenClaw connects to Telegram
The channel polls Telegram's Bot API for updates and sends replies through sendMessage. Access control is deliberately strict by default: direct messages require pairing, and groups can be restricted to an allowlist.
Whichever path you take, the agent still needs a personality and a job description. A bare API key tells OpenClaw it may call Telegram; a SOUL.md tells it when to call it and what a good answer looks like. Skipping that step is why most integrations produce impressive demos and nothing else.
Credentials
TELEGRAM_BOT_TOKEN— the token BotFather hands you when you create the bot (format 123456789:ABCdef…)
Setup
Step 1 — Create the bot with BotFather
Message @BotFather in Telegram, run /newbot, pick a name and a username, and copy the token it returns. Do not skip the username step — a bot without one cannot be added to groups.
Step 2 — Set the access policy before you restart
Start in pairing mode: DMs from unknown users are held until you approve them, and group messages require an explicit mention. Both knobs live under channels.telegram.
Step 3 — Restart the gateway and test
Restart the gateway so the new channel loads, open a chat with your bot, and send a message. Approve the pairing code it replies with. Then test a group by mentioning it explicitly.
Copy-paste config
{
channels: {
telegram: {
enabled: true,
botToken: {
source: "env",
provider: "default",
id: "TELEGRAM_BOT_TOKEN",
},
dmPolicy: "pairing",
groups: {
"*": {
requireMention: true,
},
},
},
},
}
The raw API call underneath
Telegram's Bot API is a plain JSON-over-HTTPS API, so any runtime can call it directly:
curl -s "https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/getMe" | head -c 200
Gotchas that cost people an afternoon
- Group bots need the username and privacy mode settings. Turn off “privacy mode” in BotFather if the bot must read every message; otherwise it only sees messages that mention it or reply to it.
- Telegram rate limits are tight. Broadcast channels are limited to roughly 30 messages per second globally and about 1 message per second per chat — a fan-out loop will get you throttled.
- Pairing codes expire. Approve promptly; a stale code means restarting the pairing flow.
- Long answers need splitting. Telegram caps a single message at 4096 characters — long agent output must be chunked or sent as a file.
- The bot cannot read channels it was never added to. It also cannot start conversations: the user must message it first.
FAQ
Do I need a Telegram account for the agent itself?
No. Only your own account interacts with it; the bot is the identity.
Why did my bot stay silent in a group?
Two usual reasons: privacy mode is on in BotFather, or the message did not mention the bot while requireMention is enabled.
Can the agent send to a channel it does not own?
Only if it is an administrator with post rights. Grant the minimum permission set you are comfortable with.
Where to start
Three paths, cheapest first. The free pack is the fastest way to see the whole agent workflow end to end; the bundle is where the multi-channel setup patterns live.
🔥 Ready to Build Your AI Agent?
SOUL.md Mega Pack Complete Bundle ($29) Get SOUL.md Mega Pack → Download 5 Free TemplatesBefore you wire anything up, work through the free deployment checklist — it is the rollout order that keeps a half-configured agent from eating your quota.