Edit a message
editChange the text of a Telegram message you sent by providing the chat, message ID, and replacement body.
Instructions
Change the text of a message you sent. Telegram marks it edited.
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": {
"peer": "<peer>",
"message_id": "<message_id>",
"text": "<text>"
},
"name": "edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peer | Yes | The chat the message is in. | |
| text | Yes | The replacement body. | |
| message_id | Yes | Id of the message to edit. |