edit_message
Update a sent Telegram message with new text, formatting, or inline keyboard. Specify the message by ID or inline ID.
Instructions
Edit a previously sent text message. If chat_id is omitted, targets the default log group.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | New message text | |
| chat_id | No | Chat ID or @channel_username. Optional — defaults to log group | |
| entities | No | JSON array of MessageEntity objects (alternative to parse_mode) | |
| message_id | No | ID of the message to edit (required if inline_message_id not provided) | |
| parse_mode | No | Text formatting mode | |
| reply_markup | No | JSON string with inline keyboard markup | |
| inline_message_id | No | Inline message ID (required if chat_id/message_id not provided) | |
| link_preview_options | No | JSON object with link preview options (e.g. {"is_disabled": true}) |