Telegram (Grammy) icon

Telegram (Grammy)

Send and manage Telegram messages, chats, and files via Grammy

Actions10

Message → Edit

AI-generated

Summary

Edits the text of an existing Telegram message and can update its reply markup and formatting entities.

Inputs

  • Bot Token (required) — Telegram bot token; defaults to the incoming item’s access_token or token field.
  • Chat ID (required) — ID of the chat containing the message.
  • Message ID (required) — Numeric ID of the message to edit.
  • Text — Replacement message text; defaults to an empty string.
  • Reply Markup (Edit) — JSON reply markup, such as an inline keyboard; omitted from the API call if empty.
  • Entities (Edit) — JSON array of Telegram message entities for text formatting; omitted if empty or not an array.

Output shape

A single item containing the edited message returned by Telegram.

Runs once per input item. With Continue On Fail enabled, errors are returned as an item with an error field.

Links

Discussion