Delete all messages by a user in a chat
delete_user_historyDelete all messages from a specific user in a Telegram channel or supergroup, clearing their chat history for moderation.
Instructions
Wipe every message a given user has posted in the channel/supergroup.
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>",
"user": "<user>"
},
"name": "delete_user_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peer | Yes | ||
| user | Yes | ||
| accountId | No |