Home / Docs / The Telegram channel
Running an AnroAgents agent on Telegram
Running your AnroAgents agent on your own Telegram bot.
An AnroAgents agent can answer in Telegram as well as on your website. The bot is yours: you create it in Telegram's BotFather, and AnroAgents runs your agent behind it. The Telegram channel is available on the paid AnroAgents plans.
The agent behaves the same way it does in the widget. It answers from the same Knowledge Base, qualifies the person it is talking to using the same framework, and books meetings into the same Google Calendar. Nothing is configured twice.
Connecting a bot
Create the bot first. Open Telegram, message @BotFather, send /newbot, and follow the prompts to pick a name and a username. BotFather replies with a token that looks like 123456789:AAExample-TokenGoesHere.
Paste that token into the Telegram section of your agent in AnroAgents. It is on the agent's edit screen, under Integrations, above the webhooks. The agent has to be saved before a bot can be connected to it, because AnroAgents points Telegram at a web address that contains the agent's id. The token is checked against Telegram, encrypted, and pointed at AnroAgents straight away — after that it is never shown again, and AnroAgents displays only the bot's @-name and the last few characters so you can tell which bot is connected.
A bot can serve exactly one AnroAgents agent. If you have several agents, create a separate bot for each.
AnroAgents never shows the token again after it is saved, so keep BotFather's message if you want your own copy. If you lose it, generate a new token in BotFather and paste that one instead.
What a visitor sees
A visitor opens the bot in Telegram, sends a message, and the agent replies. There is no greeting until they write first — Telegram does not allow a bot to open a conversation with someone who has not contacted it.
Everything in one Telegram chat is a single continuing AnroAgents conversation. A Telegram chat has no equivalent of closing a browser tab, so a person who comes back a month later carries on where they left off, and the agent keeps what it already learned about them.
Long answers are split across several messages, because Telegram refuses anything over 4096 characters.
What is not in the Telegram channel
An AnroAgents agent in Telegram does not receive photos, voice notes or files. Those messages are ignored rather than answered as though they had been read.
Live handoff works in Telegram. A visitor who asks for a person is told someone will follow up, and an operator replying from the AnroAgents Inbox reaches the Telegram chat — including images, which arrive as photos. The visitor is also told when an operator joins, when the conversation returns to the assistant and when it is closed.
Those few system lines are in English regardless of the agent's language, which is the same as everywhere else the platform speaks to a visitor directly.
Proactive triggers do not apply. They react to behaviour on a web page — time on page, scroll depth, exit intent — and there is no page in Telegram.
The pre-chat form does not apply either; there is no form to show before a Telegram conversation starts.
Messages and billing
Telegram messages count against the same monthly allowance as the widget. There is no separate Telegram charge and no separate limit — one plan, one allowance, whichever channel the conversation happens in.
Disconnecting
Disconnect from the same screen. AnroAgents tells Telegram to stop sending updates and deletes the stored token; the bot itself stays yours and keeps existing in Telegram until you delete it in BotFather.
If you revoke the token in BotFather without disconnecting in AnroAgents, the next message reveals that the token no longer works: the channel switches itself off and you get a notification explaining why.