---
related_nodes: ["telegram_form_callback", "telegram_send"]
---

# Telegram Form Action

Runs Telegram callback/form actions for inline keyboard workflows.

For the general action surface, including typing indicators, deletion, and reactions, use [Telegram Action](telegram_action.md).

## Configuration

**connection** - Telegram bot connection to use.

**operation**:

- `answer_callback_query` - Acknowledge a callback query. Use early to stop Telegram's loading spinner.
- `edit_message_text` - Edit an existing message's text, optionally with reply markup.
- `edit_message_reply_markup` - Replace or clear an existing message's reply markup.

`reply_markup` fields accept raw Telegram reply markup JSON objects. Empty reply markup clears markup for `edit_message_reply_markup`.

**retry** - Whether a request is sent again after a failure that passes: a rate limit, a busy server, a dropped connection. Off by default; see [Retries](http_get.md#retries) for how attempts and waits work. Every operation is a write, sent again only when Telegram refused it before acting: the connection never opened, or Telegram answered 425 or 429.

## Inputs

**input** - Any JSON data for template interpolation.

## Outputs

**output**

```json
{
  "success": true,
  "operation": "answer_callback_query",
  "result": true
}
```

Telegram may return a message object for edit operations.

## Examples

### Answer Callback Query

```json
{
  "connection": "my-bot",
  "operation": {
    "op": "answer_callback_query",
    "callback_query_id": "{{ output.callback_query_id }}",
    "text": "Saved",
    "show_alert": false
  }
}
```

### Edit Message Text

```json
{
  "connection": "my-bot",
  "operation": {
    "op": "edit_message_text",
    "chat_id": "{{ output.chat_id }}",
    "message_id": "{{ output.message_id }}",
    "text": "Done",
    "reply_markup": "{}"
  }
}
```
