Edit Message
edit_messageEdit the text and optional attachments of a previously sent bot message. Uses the message ID to update content or replace inline keyboard buttons.
Instructions
Edit the text of an existing message sent by the bot. Optionally update attachments (inline keyboard buttons). Requires the message_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes | The ID of the message to edit (from send_message or get_messages) | |
| text | Yes | New message text | |
| format | No | Text formatting for new text | |
| attachments | No | Optional new attachments (replaces existing) |