Telegram Setup
Complete guide to connecting Telegram with OpenClaw
Complete guide to connecting Telegram with OpenClaw
New to channel setup? For a hands-on, step-by-step tutorial, check out our Channel Setup Tutorial. This page is a comprehensive reference covering all Telegram features and configuration options.
Telegram is a popular messaging platform with excellent bot support. OpenClaw connects to Telegram using the Bot API via grammY, providing DMs, groups, and rich media support.
Streaming & status (2026.2.21): Preview streaming is configured via a single boolean channels.telegram.streaming (legacy streamMode values are auto-mapped). You can enable configurable lifecycle status reactions (queued/thinking/tool/done/error) with emoji and timing overrides, shared with Discord. For cron and heartbeat, explicit topic targets (<chatId>:topic:<threadId>) are honored so scheduled sends land in the configured topic.
Setting up Telegram requires creating a bot with BotFather:
/newbotOptional: Set bot description and commands:
/setdescription - Set bot description/setcommands - Set bot commands{
"channels": {
"telegram": {
"enabled": true,
"token": "YOUR_BOT_TOKEN_HERE"
}
}
}
Add your bot token:
TELEGRAM_BOT_TOKENopenclaw message poll (duration, silent delivery, anonymity options){
"channels": {
"telegram": {
"allowFrom": ["@username", "123456789"]
}
}
}
{
"channels": {
"telegram": {
"groups": {
"*": {
"requireMention": true
},
"-1001234567890": {
"requireMention": false,
"activation": "always"
}
}
}
}
}
In Telegram forum groups, you can route each topic to a different agent so each topic has its own session, workspace, and memory. That keeps daily briefs, alerts, support, and content in separate “rooms” instead of one mixed thread.
{
"channels": {
"telegram": {
"groups": {
"-100xxxxxxxxxx": {
"topics": {
"daily-brief": { "agentId": "nexus" },
"radar": { "agentId": "scout" },
"content": { "agentId": "quill" },
"runtime": { "agentId": "forge" },
"support": { "agentId": "guide" }
}
}
}
}
}
}
Replace the group ID and topic names with your forum’s IDs and topic slugs. Each topic gets its own agent and session.
By default, unknown senders require pairing:
openclaw pairing approve telegram <code>Keep your bot token secure:
If bot doesn't respond:
If messages aren't received:
If group features don't work: