set_privacy
Change one Telegram privacy setting, such as group invites or phone calls, while preserving per-user exceptions. Use it to control who can contact or add you.
Instructions
Change one privacy setting; per-user exceptions are preserved. Recommended: group_invites=contacts so strangers cannot add you to spam groups.
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": {
"setting": "<setting>",
"level": "<level>"
},
"name": "set_privacy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | Yes | ||
| dry_run | No | ||
| setting | Yes |