Edit message
edit_messageEdit a previously sent Telegram message to change its text content. Applies only to your own messages and supports multiple text formatting modes.
Instructions
Replace the text of an existing message in a Telegram chat. Only works on messages sent by the authenticated account. Cannot edit media or other message attributes — text only. parse_mode: classic markdown/html/auto or rich (Rich Message; dialect auto-detected). Success: dict with message_id, date, chat, text, status='edited', and edit_date (rich messages also set rich=true and rich_format). Error: dict with ok=false and error string (e.g. message not found or not editable). Use edit_message to update a previously sent message; use send_message to create new ones. Full documentation: https://github.com/leshchenko1979/fast-mcp-telegram/blob/main/docs/Tools-Reference.md
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Target chat: numeric id (e.g. -100…), username without @, or 'me' for Saved Messages. | |
| message | Yes | Message text. When sending files, used as caption. | |
| message_id | Yes | Message id in this chat to edit (from get_messages or Telegram). | |
| parse_mode | No | 'markdown'/'html'/'auto': classic entity formatting (auto detects). 'rich': Telegram Rich Message document; dialect auto-detected (known HTML tags outside code → rich HTML, else rich markdown). Default is 'auto'. parse_mode='rich' cannot be combined with files. | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| chat | No | ||
| code | No | ||
| date | No | ||
| rich | No | ||
| text | No | ||
| error | No | ||
| action | No | ||
| params | No | ||
| sender | No | ||
| status | No | ||
| topic_id | No | ||
| edit_date | No | ||
| exception | No | ||
| operation | No | ||
| error_code | No | ||
| message_id | No | ||
| rich_format | No | ||
| reply_markup | No |