Restrict a user with a custom rights mask
restrict_userSet restrictions on a Telegram user in a chat, specifying actions they cannot perform like sending messages, media, gifs, or inviting users.
Instructions
Set specific restrictions. true for a field means the user CANNOT do that action.
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>",
"rights": "<rights>"
},
"name": "restrict_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peer | Yes | ||
| user | Yes | ||
| rights | Yes | ||
| accountId | No |