edit_message
Update the content of a previously sent Telegram message using its ID, with optional formatting via Markdown or HTML.
Instructions
Edit an existing message.
Args: message_id: ID of the message to edit text: New text for the message chat_id: Chat ID or @channel_username (uses TELEGRAM_CHAT_ID if omitted) parse_mode: "Markdown", "MarkdownV2", or "HTML" (optional)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message_id": "<message_id>",
"text": "<text>"
},
"name": "edit_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes | ||
| text | Yes | ||
| chat_id | No | ||
| parse_mode | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |