Adding Your Bot to Telegram Groups
Table of Contents
By default, Telegram bots can only receive direct messages. When added to a group, they won't see most messages โ Telegram's Privacy Mode blocks them. This guide shows you how to fix that and control your bot's group behavior from the Agento dashboard.
Prerequisites
- Your agent is running and Telegram is connected
- You have access to the Telegram account that created the bot (for BotFather)
Step 1 โ Disable Privacy Mode in BotFather
Privacy Mode is a Telegram setting that controls what messages your bot receives in groups. When enabled (the default), your bot only sees:
- Messages that @mention the bot
- Replies to the bot's own messages
- Service messages (member joined, etc.)
To let your bot see all group messages, you need to turn this off.
- Open Telegram and search for @BotFather
- Send
/mybots - Select your bot
- Tap Bot Settings
- Tap Group Privacy
- Tap Turn off
You'll see a confirmation: "Privacy mode is disabled."
Important: Changing privacy mode only takes effect in groups the bot joins after the change. For groups the bot is already in, remove it and add it back.
Alternative: If you make the bot a group admin, it receives all messages regardless of the privacy mode setting.
Step 2 โ Add the Bot to a Group
- Open the Telegram group (public or private โ both work the same)
- Tap the group name to open settings
- Tap Add Members
- Search for your bot's username (e.g.
@my_agento_bot) - Add it to the group
The bot will appear in the member list and start receiving messages.
Step 3 โ Configure Group Behavior in Agento
Open the Agento dashboard, go to your agent's Manage tab, and scroll to Telegram Access Control. You'll see a Group Chats section with two settings:
Group Policy
| Policy | Behavior |
|---|---|
| Open (default) | Bot responds in any group it's added to |
| Disabled | Bot ignores all group messages โ DMs only |
Require @mention
When group policy is set to Open, you can toggle Require @mention:
- On (default) โ The bot only responds when someone @mentions it or replies to one of its messages. All other group messages are ignored.
- Off โ The bot responds to every message in the group.
For most use cases, leave this on. It keeps the bot from jumping into every conversation.
After changing settings, click Save. The agent restarts to apply the new configuration.
Testing
With Require @mention enabled (default):
- Send a regular message in the group โ bot stays quiet
- Send a message with
@your_bot_nameโ bot responds - Reply to the bot's message โ bot responds
With Require @mention disabled:
- Any message in the group โ bot responds
Quick Reference
| Step | Where | What |
|---|---|---|
| Disable Privacy Mode | Telegram โ @BotFather โ /mybots โ Bot Settings โ Group Privacy โ Turn off |
Lets the bot receive all group messages |
| Add bot to group | Telegram โ Group โ Add Members โ search bot username | Works for public and private groups |
| Set group policy | Agento โ Manage โ Telegram Access Control โ Group Chats | Open (respond in groups) or Disabled (DMs only) |
| Set mention behavior | Agento โ Manage โ Telegram Access Control โ Require @mention | On = @mentions and replies only; Off = all messages |
Troubleshooting
Bot doesn't respond in the group: Make sure Privacy Mode is disabled in BotFather. If you changed it after the bot was already in the group, remove the bot and re-add it.
Bot responds to everything: Check the Require @mention toggle in the Agento dashboard. If it's off, the bot responds to all messages.
Bot only works in some groups: Privacy Mode changes only apply to groups joined after the change. Remove and re-add the bot to older groups.