restrict_chat_member
Restrict a user's permissions in a Telegram chat by providing user ID and a permissions JSON object. Optionally target a specific chat or set an expiration time.
Instructions
Restrict a user's permissions in a chat. If chat_id is omitted, targets the default log group.
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": {
"user_id": "<user_id>",
"permissions": "<permissions>"
},
"name": "restrict_chat_member"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | No | Chat ID or @channel_username. Optional — defaults to log group | |
| user_id | Yes | User ID to restrict | |
| until_date | No | Unix timestamp when restrictions will be lifted | |
| permissions | Yes | JSON string with ChatPermissions object | |
| use_independent_chat_permissions | No | Use independent permissions for each privilege instead of implicit grouping |