deleteBusinessMessages
Deletes messages on behalf of a Telegram business account, including bot-sent or all messages when the required business bot rights are granted.
Instructions
Delete messages on behalf of a business account. Requires the can_delete_outgoing_messages business bot right to delete messages sent by the bot itself, or the can_delete_all_messages business bot right to delete any message. 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": {
"business_connection_id": "<business_connection_id>",
"message_ids": "<message_ids>"
},
"name": "deleteBusinessMessages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_ids | Yes | A list of 1-100 identifiers of messages to delete. All messages must be from the same chat. See deleteMessage for limitations on which messages can be deleted | |
| business_connection_id | Yes | Unique identifier of the business connection on behalf of which to delete the messages |