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.
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 |