Telegram Bot icon

Telegram Bot

Interact with the Telegram Bot API – send messages, manage chats, handle payments, and more

Actions101

Message → Edit Message Text

AI-generated

Summary

Edit the text of a specific message in a Telegram chat by providing the chat's unique identifier, the message's unique ID, and the new text content to replace the existing message.

Inputs

  • Chat ID (required) — Unique identifier for the target chat or username (@channelusername) where the message was sent.
  • Message ID (required) — Unique identifier of the target message whose text is to be edited.
  • Text (required) — New text content that will replace the existing message text.
  • Parse Mode — Optional mode to parse the message text (None, Markdown, MarkdownV2, or HTML). Defaults to None.
  • Additional Fields — Optional additional parameters such as disabling notifications, protecting content, reply message ID, message thread ID, disabling web page preview, and allowing sending without reply.

Output shape

a single record representing the edited message object returned by the Telegram Bot API

The operation returns the edited message object upon success. The output is parsed from the Telegram API response's result field. If an error occurs and "Continue On Fail" is enabled, the output will include an error message for the failed item.

Examples

Example 1: Edit message text in a chat

Specify the chat ID, message ID, new text content, optionally choose a parse mode and set any additional fields to control notification or reply behavior.

Links

Discussion