revokeChatInviteLink
Revoke an active Telegram invite link to invalidate access. Requires bot admin rights with can_invite_users; returns the revoked link as a ChatInviteLink object.
Instructions
Revoke an invite link created by the bot. If the primary link is revoked, a new link is automatically generated. The bot must be an administrator with can_invite_users rights. Returns the revoked invite link as ChatInviteLink object.
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": {
"chat_id": "<chat_id>",
"invite_link": "<invite_link>"
},
"name": "revokeChatInviteLink"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Unique identifier for the target chat or username of the target channel (in the format @channelusername) | |
| invite_link | Yes | The invite link to revoke |