Let bots talk to bots and manage other bots
What it is
Since spring 2026, bots can work with other bots. Bot-to-bot communication (Bot API 10.0, May) lets your bot message and answer other bots. Managed bots (Bot API 9.6, April) let it create bots for its users and run them.
How to do it
- Turn on Bot-to-Bot Communication Mode in @BotFather.
- In a group, address a bot with `/command@OtherBot` or a reply; at least one of… In a group, address a bot with `/command@OtherBot` or a reply; at least one of the two bots needs the mode. A bot with the mode that is an admin or has privacy mode off gets all bot messages there.
- In private, call `sendMessage` with the other bot's `@username` as `chat_id`; both need the mode.
- To manage bots, enable Bot Management Mode in your bot's settings in @BotFather's Mini App (`t.me/BotFather?startapp`).
- Share `t.me/newbot/<your_bot>/<suggested_username>?name=<suggested_name>` or a… Share `t.me/newbot/<your_bot>/<suggested_username>?name=<suggested_name>` or a `request_managed_bot` keyboard button (private chats only). The person confirms the pre-filled, editable name and username.
- On the `managed_bot` update, fetch the token with `getManagedBotToken`, rotate… On the `managed_bot` update, fetch the token with `getManagedBotToken`, rotate it with `replaceManagedBotToken`, limit access with `setManagedBotAccessSettings`.
Watch out
- Loop protection is required: drop duplicates, rate-limit replies (say, one every few seconds per bot), cap depth or time overall and per pair of bots. Stay stable even if another bot answers instantly and endlessly; loops can bring platform restrictions.
- Access settings take up to 10 users besides the owner, who always has access.
- Anyone with a bot's token controls it: guard managed tokens like passwords.
With Gem
Gem has no bot-to-bot features and doesn't create bots: projects run on @gembot, and a creator's own bot isn't available yet. Nearby: an app in your project can send a `gem.event` that drives the project's rules.
Sources
- https://core.telegram.org/bots/features#bot-to-bot-communication
- https://core.telegram.org/bots/features#managed-bots
- https://core.telegram.org/bots/api#getmanagedbottoken
- https://core.telegram.org/bots/api-changelog#may-8-2026