Ban a user from a channel/supergroup
ban_userBan a user from a Telegram chat, with optional time limit. Specify the chat and user, and set untilDate for a timed ban; default is permanent.
Instructions
Fully ban a user. Pass untilDate (unix seconds) to time-limit the ban; default is forever.
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": "ban_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peer | Yes | ||
| user | Yes | ||
| accountId | No | ||
| untilDate | No |