Prerequisites
- A Telegram account
- An IronClaw instance reachable from Telegram over HTTPS
Setup
1
Create a bot
Message BotFather and send
/newbot. Choose a name and a
username ending in bot. BotFather replies with a token that looks like
123456789:ABCdefGhIJKlmNoPQRsTUVwxyZ.2
Start IronClaw
3
Enter the bot token (operator, once per instance)
In the web interface, open Extensions, switch to the Channels tab,
and scroll to the bottom of the Built-in section. Use Configure on the Telegram
card and paste the bot token.The token is stored in the encrypted secret store, and the webhook is registered with
Telegram for you. Telegram delivers updates to:
4
Pair your account (each person)
Configuring the bot does not connect you to it. Pairing is a separate step that tells
IronClaw which Telegram user corresponds to which IronClaw user. Start a chat with your
bot and follow the pairing prompt.Pairing is what stops a stranger who finds your bot from talking to your agent as you.
5
Talk to it
Send your bot a direct message. To use it in a group, add the bot to the group — by
default Telegram bots only see messages that mention them.
Configuration
Telegram has no settings inconfig.toml and no CLI enablement key. The
ingress route is compiled in and mounted unconditionally; it starts serving
once you install the Telegram extension and finish bot setup in the WebUI
(see the steps above). Until then it returns 503.
The bot token lives in the encrypted secret store, not in config.toml. See
Configuration.
A
[telegram] section left over from an older release still parses, but
nothing reads it — ironclaw serve logs a deprecation notice on boot.
Delete the section to silence it.Troubleshooting
The bot never replies
The bot never replies
Telegram delivers updates by webhook, so your instance must be reachable over HTTPS with a
valid certificate. Telegram will not deliver to a self-signed endpoint or a private
address.
It works in DMs but not in a group
It works in DMs but not in a group
Either mention the bot directly, or turn off privacy mode through BotFather
(
/setprivacy) so it can see all group messages.Someone else messaged my bot
Someone else messaged my bot
Anyone who knows the bot’s username can start a chat with it. Unpaired users are not
treated as you — complete pairing so your agent only acts on your behalf for your own
account.
"An administrator must configure the Telegram bot first"
"An administrator must configure the Telegram bot first"
The instance-wide bot token has not been set, or you reached the pairing panel from the
Registry tab before it was. Open Extensions → Channels, scroll to the bottom of the
Built-in section, and use Configure on the Telegram card there.
I asked the agent to connect Telegram and it said it couldn't
I asked the agent to connect Telegram and it said it couldn't
The operator half — configuring the bot token — is deliberately not something the agent
can do for you; follow the steps above in the web interface. Once the bot is configured,
asking the agent does work for your personal half: it installs and activates the
extension and surfaces the pairing panel so you can link your Telegram account.