OpenClaw + Telegram — Native Channel Setup (BotFather, Pairing, Groups)

Telegram is a native OpenClaw channel and the fastest one to get running: create a bot with BotFather, paste the token, restart the gateway.

⚡ Skip the boilerplate

A ready-made SOUL.md already knows the Telegram playbook — copy it, start your agent, ship today.

Want every guide + every template? Complete Bundle — $29 best value

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

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

🔐 Scope it down. The token is a credential for a bot that can read and send messages as that bot — treat it like a password. Keep it in the environment; do not commit it next to your config.

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

  1. 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.
  2. 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.
  3. Pairing codes expire. Approve promptly; a stale code means restarting the pairing flow.
  4. Long answers need splitting. Telegram caps a single message at 4096 characters — long agent output must be chunked or sent as a file.
  5. 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.

Before 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.

🔥 Get All 10 Premium Products for $29 Save 70% with the Complete Bundle
Get Bundle → Free Deployment Checklist →