revoke_chat_invite_link()
- Client.revoke_chat_invite_link()
Revoke a previously created invite link.
If the primary link is revoked, a new link is automatically generated.
You must be an administrator in the chat for this to work and must have the appropriate admin rights.
Usable by Users Bots
- Parameters:
chat_id (
int
|str
) – Unique identifier for the target chat or username of the target channel/supergroup (in the format @username). You can also use chat public link in form of t.me/<username> (str).invite_link (
str
) – The invite link to revoke.
- Returns:
ChatInviteLink
– On success, the invite link object is returned.