There is no native Telegram connector or released Telegram-to-agent runtime. Your application would own the bot receiver and outbound delivery. This guide defines that preparation.
Prepare the bot boundary
You need a bot owner, a private test chat, and a server that can protect the bot token.1
Choose one update transport
Telegram’s Bot API supports polling with
getUpdates or webhook delivery. Polling does not work while a webhook is configured. For webhook delivery, review secret_token and validate the X-Telegram-Bot-Api-Secret-Token header on your receiver.2
Map and validate incoming updates
Bind permitted chat and user identifiers to your application’s policy. Deduplicate updates using their identifiers, constrain accepted message types, and define how to reject unsupported attachments. A Telegram user ID does not authorize access to a Threetone workspace or its private documents.
3
Review outbound delivery
Confirm the destination and content before a consequential send. Keep the bot token out of browsers, prompts, and logs. Preserve message identifiers and reconcile uncertain responses before retrying, so a repeated update cannot send duplicate replies.
Frequently asked questions
Is webhook receipt proof that an agent replied?
Is webhook receipt proof that an agent replied?
No. Receiving an update, processing it, and delivering an outbound reply are separate outcomes.
Can the bot token identify the person sending a message?
Can the bot token identify the person sending a message?
The token identifies the bot. Your service must separately validate incoming updates and apply its policy to the sender and chat.