edit_message_text
Update the text of an already-sent Telegram message by providing the chat ID, message ID, and new content (up to 4096 characters), with optional formatting for HTML or Markdown.
Instructions
Edit the text of an existing message.
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": {
"chat_id": "<chat_id>",
"message_id": "<message_id>",
"text": "<text>"
},
"name": "edit_message_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | New text content (up to 4096 characters). | |
| chat_id | Yes | Chat id or @username of the chat containing the message. | |
| message_id | Yes | Identifier of the message to edit. | |
| parse_mode | No | Formatting ("HTML", "Markdown", etc.). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||