Telegram Form Callback
telegram_form_callback · Nodes · Trigger · Trigger
Starts a workflow from Telegram inline keyboard callback queries.
Telegram Form Callback#
Starts workflows from Telegram inline keyboard callback queries.
For multi-step state, store sessions in Feather tables. See Bot Form State With Feather Tables.
Configuration#
connection - Telegram bot connection to listen on.
callback_data_exact - Optional exact callback_data match. If set, prefix is ignored.
callback_data_prefix - Optional prefix filter. Used only when exact match is empty.
Empty filters accept all callback queries for the connection.
Each matching callback starts one run, in the order Telegram sent them, including callbacks that arrive while earlier runs are still going.
Inputs#
None. This is a trigger node.
Outputs#
output - Callback query payload.
{
"event": "callback_query",
"connection_id": "01J...",
"update_id": 123456,
"callback_query_id": "1234567890",
"data": "create_bot:confirm",
"from": {
"id": 123,
"username": "alice",
"first_name": "Alice",
"last_name": null
},
"chat_id": 123,
"chat_type": "private",
"message_id": 456,
"inline_message_id": null,
"message": {
"update_id": 0,
"message_id": 456,
"chat_id": 123,
"chat_type": "private",
"from": null,
"date": 1710000000,
"text": "Choose an option",
"caption": null,
"attachments": []
}
}
Use callback_query_id with Telegram Form Action answer_callback_query to stop the client spinner.
Example#
[Telegram Send]
Text: Continue?
Reply Markup: {"inline_keyboard":[[{"text":"Yes","callback_data":"form:yes"}]]}
↓ user taps button
[Telegram Form Callback]
Prefix: form:
↓ output
[Telegram Form Action]
Operation: answer_callback_query
Callback Query ID: {{ output.callback_query_id }}
Inputs
None.
Outputs
output
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
connection | connection(telegram_bot) | Yes | |
callback_data_exact | string | Yes | Optional exact callback_data match. Takes precedence over prefix. |
callback_data_prefix | string | Yes | Optional callback_data prefix filter, used when exact match is empty. |
base_config | record | No | Shared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow). |