messages.ExportChatInvite#

class pyrogram.raw.functions.messages.ExportChatInvite#

Export an invite link for a chat.

Details:
  • Layer: 158

  • ID: A02CE5D5

Parameters:
  • peer (InputPeer) – Chat.

  • legacy_revoke_permanent (bool, optional) – Legacy flag, reproducing legacy behavior of this method: if set, revokes all previous links before creating a new one. Kept for bot API BC, should not be used by modern clients.

  • request_needed (bool, optional) – Whether admin confirmation is required before admitting each separate user into the chat.

  • expire_date (int 32-bit, optional) – Expiration date.

  • usage_limit (int 32-bit, optional) – Maximum number of users that can join using this link.

  • title (str, optional) – Description of the invite link, visible only to administrators.

Returns:

ExportedChatInvite