Leave a channel/supergroup
leave_channelLeave a Telegram channel without deleting it. To permanently remove the channel, use delete_channel.
Instructions
Leave the channel. Use delete_channel to also remove it (creator only).
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>"
},
"name": "leave_channel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peer | Yes | ||
| accountId | No |