clear_chat_history
Delete all messages from a Telegram chat while keeping the chat in your list; optionally clear messages for everyone in private chats or as a supergroup admin.
Instructions
Wipe ALL messages in a chat but keep the chat in your list.
Private chats, bots and small groups: cleared for you (for_everyone=True also clears the other side of a private chat). Supergroups: for_everyone needs admin rights. Broadcast channels cannot be cleared; use leave_or_delete_chats instead.
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": "<chat>"
},
"name": "clear_chat_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| dry_run | No | ||
| for_everyone | No |