Link Search Menu Expand Document

Constructor: chatInviteExported

Back to constructors index

Exported chat invite

Attributes:

NameTypeRequiredDescription
revokedBoolOptionalWhether this chat invite was revoked
permanentBoolOptionalWhether this chat invite has no expiration
request_neededBoolOptionalWhether users importing this invite link will have to be approved to join the channel or group
linkstringYesChat invitation link
admin_idlongYesID of the admin that created this chat invite
dateintYesWhen was this chat invite created
start_dateintOptionalWhen was this chat invite last modified
expire_dateintOptionalWhen does this chat invite expire
usage_limitintOptionalMaximum number of users that can join using this link
usageintOptionalHow many users joined using this link
requestedintOptionalNumber of users that have already used this link to join
subscription_expiredintOptional
titlestringOptionalCustom description for the invite link, visible only to admins
subscription_pricingStarsSubscriptionPricingOptional

Type: ExportedChatInvite

Example:

$chatInviteExported = ['_' => 'chatInviteExported', 'revoked' => Bool, 'permanent' => Bool, 'request_needed' => Bool, 'link' => 'string', 'admin_id' => long, 'date' => int, 'start_date' => int, 'expire_date' => int, 'usage_limit' => int, 'usage' => int, 'requested' => int, 'subscription_expired' => int, 'title' => 'string', 'subscription_pricing' => StarsSubscriptionPricing];