Skip to content
Fluf
Beta

We are actively shipping every day for Fluf.

New things land daily and the product keeps getting better. Tell us what to fix or build next: we read every message.

OpenClaw Telegram setup: BotFather to first reply, step by step

Connect OpenClaw to Telegram: create the Telegram bot in BotFather, add the token, approve your first DM, set up groups and fix silence, with exact commands.

A thinking blue Fluf between a cobalt Fluf and a teal Fluf, under a rose sky.
On this page

Part of OpenClaw review: the best free AI agent comes with a second job

To connect OpenClaw to Telegram, create a Telegram bot in @BotFather, give OpenClaw its token with openclaw channels add --channel telegram --token <telegram-token>, message the Telegram bot, and approve yourself with openclaw pairing approve telegram <CODE>. That's the whole OpenClaw Telegram setup for direct messages: about five minutes if your gateway already runs. Groups take a few more steps because of Telegram's privacy mode.

Below is each step from OpenClaw's docs as of 27 November 2026, the fixes for an agent that stays silent, and what the same setup looks like in Fluf.

  1. 1BotFather/newbot, copy the token
  2. 2Add the channelopenclaw channels add
  3. 3Approve yourselfpairing list, pairing approve
  4. 4Groups (optional)Privacy mode, allowlist, mention

Before you start

You need a working OpenClaw gateway. Check it:

openclaw gateway status

If it isn't running, start with our OpenClaw setup guide. You also need Telegram on your phone or desktop.

1. Create the Telegram bot in BotFather

Open Telegram and search for @BotFather. Confirm the handle is exactly @BotFather; lookalikes exist. Send:

/newbot

Pick a display name, then a username ending in bot. BotFather replies with a token like 123456789:AA.... Copy it and treat it like a password. Anyone with it can read your Telegram bot's messages.

If you prefer, BotFather also has a web app inside Telegram for creating Telegram bots.

2. Give OpenClaw the token

The CLI is the recommended way:

openclaw channels add --channel telegram --token <telegram-token>

Or edit ~/.openclaw/openclaw.json by hand:

channels: {
  telegram: {
    enabled: true,
    botToken: "123:abc",
    dmPolicy: "pairing",
    groups: { "*": { requireMention: true } },
  },
},

The TELEGRAM_BOT_TOKEN environment variable also works, for the default account only. You can point tokenFile at a file instead of pasting the token into config; it must be a regular file, not a symlink. One trap: Telegram doesn't use openclaw channels login telegram. That command is for other channels.

3. Check the channel is live

openclaw channels status --probe

The running gateway picks up the new channel without a restart. If it's offline, run openclaw gateway start for the managed service, or openclaw gateway to run it in this terminal.

4. Approve your first message

OpenClaw's default DM policy is pairing: a stranger who messages your Telegram bot gets a pairing code, not an answer. That stranger is you, the first time.

Send your Telegram bot any message, then on your computer:

openclaw pairing list telegram
openclaw pairing approve telegram <CODE>

Codes expire after an hour. Send your Telegram bot another message and it should answer.

5. Add the Telegram bot to a group

Groups need two IDs: your Telegram user ID, for allowFrom or groupAllowFrom, and the group's chat ID, as a key under channels.telegram.groups.

  1. Add the Telegram bot to the group.
  2. Find the group ID in openclaw logs --follow when someone posts. Supergroup IDs are negative and start with -100. They go under channels.telegram.groups, not groupAllowFrom.
  3. Once the group is allowed, send /whoami@<bot_username> in it to confirm both IDs.

Groups default to requireMention: true, so the agent answers only when mentioned. That's a sensible default for an agent with tool access.

6. Turn off privacy mode if it should read everything

Telegram bots start in privacy mode and don't see ordinary group messages. If you set requireMention: false and want the agent to read the whole group, either:

  • run /setprivacy in BotFather and choose Disable, or
  • make the Telegram bot a group admin. Admins receive all group messages.

Then remove the Telegram bot from each group and add it back. Telegram only applies the change on re-join, and it's the easiest step to miss.

7. Run more than one Telegram bot

With two or more Telegram accounts, set channels.telegram.defaultAccount so routing is explicit. To bind the default account to your main agent, add this to the top-level bindings array and restart the gateway:

{ agentId: "main", match: { channel: "telegram", accountId: "default" } }

Without a default, OpenClaw uses the first account ID and openclaw doctor warns. Accounts with no owner stay blocked.

When the Telegram bot stays silent

Start with OpenClaw's "no replies" runbook:

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

Then match the symptom. All fixes are from OpenClaw's Telegram troubleshooting page.

  • getMe returned 401 or deleteWebhook 401 Unauthorized at startup: the token is wrong. Re-copy or regenerate it in BotFather.
  • Silent in groups: privacy mode is on, or the group isn't listed under channels.telegram.groups. See step 6, and check the logs for skip reasons.
  • Commands half work: your sender isn't authorised. Approve the pairing, or add your numeric ID to allowFrom. This applies even when group policy is open.
  • BOT_COMMANDS_TOO_MUCH: too many skill and plugin commands for Telegram's menu. Trim them or disable native menus.
  • fetch failed on and off: some hosts reach api.telegram.org over broken IPv6. Set channels.telegram.network.dnsResultOrder: "ipv4first". On WSL2 or IPv4-only hosts, set channels.telegram.network.autoSelectFamily: false.
  • Text works but photos fail with EAI_AGAIN or ENOTFOUND: set channels.telegram.proxy to a trusted HTTP or SOCKS5 proxy.

After an update, openclaw doctor --fix also removes retired Telegram settings such as timeoutSeconds and pollingStallThresholdMs. Our OpenClaw not working guide covers the rest of the gateway.

The same thing in Fluf

Fluf is a desktop app for Mac, Windows and Linux where you hire AI agents, each a named character with persistent memory. Telegram is built in, and each agent gets its own contact with its own name and photo.

The steps:

  1. In @BotFather, send /newbot and copy the key. One Telegram bot per agent.
  2. In Fluf, open the agent's Tools & apps › Chat apps and choose Connect next to Telegram.
  3. Paste the key into Key from BotFather.
  4. Scan the QR code with your phone, or open the link, and press Start in Telegram.
  5. Fluf asks Is this your account? Check the @username and choose Yes, it's me.

No config file, no pairing command, no group IDs. The pairing link lasts five minutes, and anyone else who finds the Telegram bot gets a short "private" notice and nothing more. You can even skip the setup screen: ask the agent to connect Telegram and it walks you through BotFather, taking the key through a private card it never sees.

Fluf on a phone, answering through a chat app while the work runs on the computer
Telegram is another door into the same agent: same memory, same rules, same approvals.

What you get once it's connected:

Thursday 07:48
Draft replies to the 12 support emails that came in overnight
Juno
Drafted 12. Three are refund requests over €100, so I've held those for you.
Juno wants to send 9 repliesto customers who've emailed us beforeApproveDecline

In Telegram that request arrives with Approve and Deny buttons. Voice notes work both ways, and photos, documents and audio go up to 20 MB each. Messages wait on Telegram while your computer sleeps, and the work runs when it wakes, on your laptop or on your own always-on server with Pro. Full details in the Telegram docs.

On Free, chat apps run on one agent, and it can pass work to the rest of your team. Pro gives every agent its own Telegram contact. Fluf isn't open source; OpenClaw is, and it covers more channels from one gateway. If you want the broader view of AI agents on Telegram, read our Telegram AI agent guide, our OpenClaw review, or the OpenClaw alternatives page.

Download Fluf and have your first agent answering you on Telegram in five minutes.

Questions people ask

How do I connect OpenClaw to Telegram?
Create a Telegram bot with /newbot in @BotFather and copy the token. Run openclaw channels add --channel telegram --token <telegram-token>, message your Telegram bot, then approve yourself with openclaw pairing approve telegram <CODE>.
Why does my OpenClaw Telegram bot not reply in groups?
Groups need a mention by default, and Telegram's privacy mode hides ordinary group messages from Telegram bots. Turn privacy off with /setprivacy in BotFather, then remove and re-add the Telegram bot to the group. If channels.telegram.groups is set, the group must be listed or include *.
What does getMe returned 401 mean in OpenClaw?
Telegram rejected the bot token. Copy it again from BotFather, or regenerate it, then update channels.telegram.botToken, your tokenFile or the TELEGRAM_BOT_TOKEN variable.
How long does an OpenClaw pairing code last?
One hour. If it expires, send the Telegram bot another message to create a new request, then run openclaw pairing list telegram again.
Can each AI agent have its own Telegram contact?
In OpenClaw you can run several Telegram accounts and bind each to an agent in the bindings config. In Fluf, every agent gets its own Telegram contact with its own name and photo, connected from the agent's Chat apps card; Pro gives every agent one.

Sources

  1. OpenClaw Telegram channel, checked 27 November 2026
  2. OpenClaw Telegram setup, checked 27 November 2026
  3. OpenClaw Telegram troubleshooting, checked 27 November 2026
  4. OpenClaw troubleshooting (no replies runbook), checked 27 November 2026
  5. OpenClaw security defaults, checked 27 November 2026

TopicsOpenClawTelegramChat appsSetup

    Search every docs page: setup, agents, models, memory, routines, chat apps and reference.