leave_or_delete_chats
Bulk-clean Telegram junk chats by leaving groups and channels, deleting private or bot conversations, and optionally blocking users.
Instructions
Clean up junk chats in bulk.
group / channel: leave it and remove it from your chat list. private chat / bot: delete the chat for you; block_users=True also blocks the user or bot.
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": {
"chats": "<chats>"
},
"name": "leave_or_delete_chats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chats | Yes | ||
| dry_run | No | ||
| block_users | No |