deleteMessages
Deletes multiple Telegram messages in a specified chat using their message IDs, returning true on success.
Instructions
Use this method to delete multiple messages simultaneously. Returns True on success.
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_ids": "<message_ids>"
},
"name": "deleteMessages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Unique identifier for the target chat or username of the target bot, supergroup or channel in the format `@username` | |
| message_ids | Yes | A list of 1-100 identifiers of messages to delete. See deleteMessage for limitations on which messages can be deleted |