ban_chat_member
Ban a user from a chat to remove their access. In supergroups and channels, the ban is permanent until explicitly lifted.
Instructions
Ban a user from a chat. In supergroups/channels, the user cannot return without being unbanned.
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_id": "<chat_id>",
"user_id": "<user_id>"
},
"name": "ban_chat_member"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Chat ID or @username | |
| user_id | Yes | User ID | |
| until_date | No | ||
| revoke_messages | No |