Contents

Telegram Form Action

telegram_form_action · Nodes · Providers

Acknowledges and edits Telegram inline keyboard form messages.

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.

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

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

Telegram may return a message object for edit operations.

Examples#

Answer Callback Query#

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

Edit Message Text#

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

Inputs

  • inputRequired

Outputs

  • output

Configuration

FieldTypeRequiredDescription
connectionconnection(telegram_bot)Yes
operationtagged_unionYes
retrytagged_unionNoSends a request again after a failure that passes: a rate limit, a busy server, a dropped connection. Off sends once.
base_configrecordNoShared 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).