Actions101
- Bot Actions
- Chat Actions
- Get Chat
- Get Chat Administrators
- Get Chat Member Count
- Get Chat Member
- Ban Chat Member
- Unban Chat Member
- Restrict Chat Member
- Promote Chat Member
- Set Chat Administrator Custom Title
- Set Chat Permissions
- Export Chat Invite Link
- Create Chat Invite Link
- Edit Chat Invite Link
- Revoke Chat Invite Link
- Approve Chat Join Request
- Decline Chat Join Request
- Set Chat Photo
- Delete Chat Photo
- Set Chat Title
- Set Chat Description
- Pin Chat Message
- Unpin Chat Message
- Unpin All Chat Messages
- Leave Chat
- Set Chat Menu Button
- Get Chat Menu Button
- Set Chat Sticker Set
- Delete Chat Sticker Set
- File Actions
- Forum Actions
- Game Actions
- Inline Actions
- Message Actions
- Send Message
- Forward Message
- Copy Message
- Send Photo
- Send Audio
- Send Document
- Send Video
- Send Animation
- Send Voice
- Send Video Note
- Send Media Group
- Send Location
- Send Venue
- Send Contact
- Send Poll
- Send Dice
- Send Chat Action
- Edit Message Text
- Edit Message Caption
- Edit Message Media
- Edit Message Reply Markup
- Edit Message Live Location
- Stop Message Live Location
- Stop Poll
- Delete Message
- Delete Messages
- Payment Actions
- Sticker Actions
- Update Actions
- Webhook Actions
Message → Edit Message Text
AI-generatedSummary
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
resultfield. 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.