ChatInviteExported

class pyrogram.raw.types.ChatInviteExported

Exported chat invite

Constructor of ExportedChatInvite.

Details:
  • Layer: 223

  • ID: A22CBD96

Parameters:
  • link (str) – Chat invitation link

  • admin_id (int 64-bit) – ID of the admin that created this chat invite

  • date (int 32-bit) – When was this chat invite created

  • revoked (bool, optional) – Whether this chat invite was revoked

  • permanent (bool, optional) – Whether this chat invite has no expiration

  • request_needed (bool, optional) – Whether users importing this invite link will have to be approved to join the channel or group

  • start_date (int 32-bit, optional) – When was this chat invite last modified

  • expire_date (int 32-bit, optional) – When does this chat invite expire

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

  • usage (int 32-bit, optional) – How many users joined using this link

  • requested (int 32-bit, optional) – Number of users that have already used this link to join

  • subscription_expired (int 32-bit, optional) – For Telegram Star subscriptions », contains the number of chat members which have already joined the chat using the link, but have already left due to expiration of their subscription.

  • title (str, optional) – Custom description for the invite link, visible only to admins

  • subscription_pricing (StarsSubscriptionPricing, optional) – For Telegram Star subscriptions », contains the pricing of the subscription the user must activate to join the private channel.

Functions:

This object can be returned by 1 function.

messages.ExportChatInvite

Export an invite link for a chat

TL Schema

chatInviteExported#a22cbd96
flags:#
revoked:flags.0?true
permanent:flags.5?true
request_needed:flags.6?true
link:string
admin_id:long
date:int
start_date:flags.4?int
expire_date:flags.1?int
usage_limit:flags.2?int
usage:flags.3?int
requested:flags.7?int
subscription_expired:flags.10?int
title:flags.8?string
subscription_pricing:flags.9?StarsSubscriptionPricing

= ExportedChatInvite

Parameter Tree

ChatInviteExported
├── revokedtrue (optional)
├── permanenttrue (optional)
├── request_neededtrue (optional)
├── linkstring
├── admin_idlong
├── dateint
├── start_dateint (optional)
├── expire_dateint (optional)
├── usage_limitint (optional)
├── usageint (optional)
├── requestedint (optional)
├── subscription_expiredint (optional)
├── titlestring (optional)
└── subscription_pricingStarsSubscriptionPricing (optional)
├── periodint
└── amountlong

Example

ChatInviteExported(
    link="text",
    admin_id=0,
    date=0,
)