Edit chat message
edit_chat_messageChange the words of a message you wrote, as the screen's «Edit» does: it says «edited», the chat's open screens show the new words at once, and nobody is told anew — a mention added by an edit notifies nobody. Only your own message, not a deleted one.
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": {
"chatId": "<chatId>",
"messageId": "<messageId>",
"body": "<body>"
},
"name": "edit_chat_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The new text, Markdown. At most 32 KB. | |
| chatId | Yes | The chat's id. | |
| messageId | Yes | The message's id — one you wrote. |