Telegram
Overview
Connect your ElevenLabs AI agents with Telegram to respond to messages sent to your bot. This integration enables your agents to receive incoming messages in private chats and groups, look up chat information, send replies, and react to messages through the Telegram Bot API.
Setup
Create a Telegram bot
Open Telegram and start a conversation with @BotFather. Send /newbot and follow the prompts to choose a name and username for your bot. BotFather will reply with a bot token.
Using the bot in groups
The bot does not need to be an admin of the group, and you do not need to disable Telegram’s privacy mode. With privacy mode on (the default), Telegram delivers messages that explicitly address the bot, which is exactly what this integration listens for:
@-mentions of the bot’s username, for example@my_bot what's the status?.- Replies to the bot’s own messages, including follow-up turns inside the same back-and-forth.
Messages that don’t address the bot are ignored by design. The bot also ignores messages from other bots and does not act on edited or deleted messages.
Telegram applies privacy-mode and admin-role changes only to groups the bot joins after the change. If you previously toggled privacy mode in @BotFather, or made the bot a group admin to “fix” mentions, remove the bot from the group and add it back so the new setting takes effect — that’s typically what makes mentions start working, not the admin role itself.
In group and supergroup chats the agent’s reply is sent as a quote-reply to the triggering message, so the response stays visually anchored to the question even when the chat is busy. In private 1:1 chats the quote-reply is suppressed because it would be redundant.
Agent tools
When you add Telegram tools to an agent, the following built-in tools are available:
Some chats restrict which emoji are allowed via Telegram’s Available reactions setting. If a reaction call is rejected, instruct the agent to fall back to a text reply.
Dynamic variables
When an agent runs from Telegram, the following dynamic variables are available in prompts and tools:
See dynamic variables for how to reference these in prompts and tool calls.