revokeChatInviteLink¶
Returns: ChatInviteLink
- class litegram.methods.revoke_chat_invite_link.RevokeChatInviteLink(*, chat_id: ChatIdUnion, invite_link: str, **extra_data: Any)[source]¶
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
litegram.types.chat_invite_link.ChatInviteLinkobject.Source: https://core.telegram.org/bots/api#revokechatinvitelink
- chat_id: ChatIdUnion¶
Unique identifier of the target chat or username of the target channel (in the format
@channelusername)
Usage¶
As bot method¶
result: ChatInviteLink = await bot.revoke_chat_invite_link(...)
Method as object¶
Imports:
from litegram.methods.revoke_chat_invite_link import RevokeChatInviteLinkalias:
from litegram.methods import RevokeChatInviteLink
With specific bot¶
result: ChatInviteLink = await bot(RevokeChatInviteLink(...))
As reply into Webhook in handler¶
return RevokeChatInviteLink(...)