revokeChatInviteLink
Invalidates a bot-created Telegram chat invite link and returns the revoked ChatInviteLink object; invalidating the primary link automatically creates a new one.
Instructions
Use this method to 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 in the chat for this to work and must have the appropriate administrator 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 of the target chat or username of the target channel in the format `@username` | |
| invite_link | Yes | The invite link to revoke |