packages/kilo-docs/pages/kiloclaw/chat-platforms/telegram.md
This page covers everything you need to use KiloClaw with Telegram: connecting your bot and adding it to group chats.
{% youtube url="https://youtu.be/hIfKz073hGw" title="Telegram Setup Guide" caption="How to connect your KiloClaw agent to Telegram" /%}
Create a bot via BotFather and link it to your KiloClaw dashboard.
/newbot and follow the prompts to create your bot/start{% image src="/docs/img/kiloclaw/telegram.png" alt="Connect account screen" width="800" caption="Telegram bot token entry" /%}
You can remove or replace a configured token at any time.
By default, KiloClaw will not participate in a group chat, even if added. If you would like to use your KiloClaw in a group chat, you must configure the KiloClaw settings.
By default, Telegram bots only see messages that directly mention them. To allow your bot to see all group messages:
/setprivacy and select your botYou need the group's chat ID to configure access. Use one of these methods:
openclaw logs --follow after sending a message in the group and read the chat.id valueGroup and supergroup IDs are negative numbers (e.g. -1001234567890).
Tell your KiloClaw bot to add the group to its configuration. You can do this via DM:
"Add Telegram group
-1001234567890to my allowed groups. Require a @mention to respond."
Or configure it directly in the OpenClaw Control UI config:
{
"channels": {
"telegram": {
"groupPolicy": "allowlist",
"groups": {
"-1001234567890": {
"requireMention": true
}
}
}
}
}
Set requireMention: false if you want the bot to respond to every message in the group without needing to be @mentioned.
{% callout type="tip" %}
To restrict which group members can trigger the bot, add your user IDs to allowFrom inside the group config. See the OpenClaw groups documentation for advanced access control patterns.
{% /callout %}