Edit a message
edit_messageModify the text of an already sent Telegram message by specifying the chat, message ID, and new content.
Instructions
Edit the text of a previously sent 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": {
"peer": "<peer>",
"messageId": "<messageId>",
"text": "<text>"
},
"name": "edit_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peer | Yes | ||
| text | Yes | ||
| accountId | No | ||
| messageId | Yes | ||
| parseMode | No | ||
| linkPreview | No |