Actions36
- Message Actions
- Chat Actions
- User Actions
- Media Actions
- Channel Actions
Message → Edit Message
AI-generatedSummary
Edit the text content of an existing Telegram message within a specified chat.
Inputs
- Chat ID (required) — Identifier of the target chat (ID, username @username, or phone number).
- Message ID (required) — ID of the message to edit.
- Text (required) — New text content to replace the existing message text.
- Additional Options — Optional parameters including Parse Mode (Markdown, HTML, or none) for text formatting, Silent to avoid notification, Reply To Message ID, Link Preview display, and pagination controls (Offset ID, Min ID, Max ID) relevant to message context.
Output shape
a single JSON object representing the edited message as returned by the Telegram MTProto client
The output is the updated message object reflecting the new text and applied options. Errors produce failure unless 'Continue On Fail' is enabled.
Examples
Example 1: Edit a message text with Markdown formatting and no notification
Set Chat ID, Message ID of the message to edit, provide new text with Markdown syntax, set Parse Mode to 'Markdown', and Silent option to true.