Format of Telegram updates received by the bot — messages, edits, callbacks, and other event types
Telegram uses a model called Updates to notify bots about any interaction: received messages, edits, inline button clicks, group joins, and more. When you connect a Telegram bot in Timely.ai, the platform automatically configures a webhook in the Telegram Bot API to receive those updates and transform them into workspace events.This page documents the raw update format — useful for debugging or direct integrations with the Telegram API.
If you manage the bot directly (without Timely as an intermediary), never configure two webhooks on the same token — Telegram delivers each update to only one endpoint.
Every Telegram update has a unique and incrementing update_id, plus exactly one field with the event type:
{ "update_id": 123456789, "message": { ... }}
Possible fields at the root level are: message, edited_message, channel_post, edited_channel_post, inline_query, callback_query, my_chat_member, chat_member, among others.
Telegram sends multiple image sizes in the photo array. Always use the last element (highest resolution). To download: GET https://api.telegram.org/bot{TOKEN}/getFile?file_id={FILE_ID} then https://api.telegram.org/file/bot{TOKEN}/{file_path}.
Timely.ai treats edited_message as an update to the original message. Edit history is not stored — only the most recent content is displayed in the conversation.