---
related_nodes: ["telegram_send", "telegram_form_action", "telegram_message_trigger"]
---

# 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](../workflows/bot-form-state-with-feather-tables.md).

## 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.

```json
{
  "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 }}
```
