Hide / show history for new members
toggle_pre_history_hiddenControl whether new members in supergroups can see messages sent before they joined. Enable or disable pre-history hiding for a chat.
Instructions
Supergroups only. When enabled, new members cannot see history before they joined.
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>",
"enabled": "<enabled>"
},
"name": "toggle_pre_history_hidden"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peer | Yes | ||
| enabled | Yes | ||
| accountId | No |