Telegram
This page covers everything you need to use KiloClaw with Telegram: connecting your bot and adding it to group chats.
Connecting KiloClaw to Telegram
Create a bot via BotFather and link it to your KiloClaw dashboard.
- Open Telegram and search for @BotFather
- Send
/newbotand follow the prompts to create your bot - Copy the Bot Token that BotFather gives you
- Go to the Settings tab on your KiloClaw dashboard
- Paste the token into the Telegram Bot Token field
- Click Save
- Redeploy your KiloClaw instance
- Send a direct message to your bot in Telegram:
/start
You can remove or replace a configured token at any time.
Adding KiloClaw to a Telegram Group Chat
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.
Step 1: Add the bot to your group
- Open the Telegram group where you want to add your bot
- Tap the group name at the top to open group info
- Tap Add Members
- Search for your bot's username and add it
Step 2: Set group visibility (Privacy Mode)
By default, Telegram bots only see messages that directly mention them. To allow your bot to see all group messages:
- Open a chat with @BotFather
- Send
/setprivacyand select your bot - Choose Disable
- Remove the bot from the group and re-add it for the change to take effect
Step 3: Get the group chat ID
You need the group's chat ID to configure access. Use one of these methods:
- Forward a message from the group to @userinfobot — it will show the chat ID
- Or run
openclaw logs --followafter sending a message in the group and read thechat.idvalue
Group and supergroup IDs are negative numbers (e.g. -1001234567890).
Step 4: Configure the group in OpenClaw
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.
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.
