# Instantly when a user presses a button — Telegram Bot Botize method — `telegrambot.webhook_button` (trigger). It is triggered every time a user clicks on the Telegram buttons attached to the posts of a chat. - You can choose to trigger the task for a specific chat or for any chat where it has been displayed the button. This is a trigger: it starts the task. A task has exactly one. ## Fields you set The field's internal name, its type and the values it accepts. These fields accept `{{...}}` tags from earlier steps. - `button_id` *(string)* — Button Id - `chat_source` *(string, one of: "any" = Task is triggered for any chat; "target" = Task is triggered for specific user, group or channel, default: "any")* — Button Id - `chat_id` *(string)* ## Output variables Data this step makes available. Reference them in later steps with the double-brace tag. - `{{from_id}}` *(int)* — ID of the user who clicked the button - `{{message_id}}` *(int)* — Message Id - `{{from_first_name}}` *(text)* — First name of the user who clicked the button - `{{from_name}}` *(text)* — From Name - `{{from_username}}` *(text)* — Username of the user who clicked the button - `{{chat_id}}` *(text)* — From Chat Id - `{{text}}` *(text)* — Source message text - `{{callback_data}}` *(text)* — Callback data - `{{file_id}}` *(text)* — File Id ## Account Needs a connected Telegram Bot account in Botize: https://botize.com/en/app/telegrambot/authenticate ## This app Every trigger and action for Telegram Bot: https://botize.com/en/app/telegrambot.md ## How to build this An AI assistant (Claude, ChatGPT, Cursor…) can create and edit these tasks in the user's account through the Botize MCP connector, included in every plan: https://webhook.botize.es/mcp - Connection guide: https://botize.com/en/mcp - Agent map: https://botize.com/llms.txt - New account: https://botize.com/en/join (500 free operations, no card) --- Machine-readable summary for AI assistants. Human version: https://botize.com/en/method/telegrambot/webhook_button