Layer 227
ChatInviteExported
Exported chat invite
constructor
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;
Parameters
| Name | Type | Description |
|---|---|---|
| Revoked | flags .0? true | Whether this chat invite was revoked |
| Permanent | flags .5? true | Whether this chat invite has no expiration |
| RequestNeeded | flags .6? true | Whether users importing this invite link will have to be approved to join the channel or group |
| Link | string | Chat invitation link |
| AdminId | long | ID of the admin that created this chat invite |
| Date | int | When was this chat invite created |
| StartDate | flags .4? int | When was this chat invite last modified |
| ExpireDate | flags .1? int | When does this chat invite expire |
| UsageLimit | flags .2? int | Maximum number of users that can join using this link |
| Usage | flags .3? int | How many users joined using this link |
| Requested | flags .7? int | Number of users that have already used this link to join |
| SubscriptionExpired | flags .10? int | 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 | flags .8? string | Custom description for the invite link, visible only to admins |
| SubscriptionPricing | flags .9? StarsSubscriptionPricing | For Telegram Star subscriptions, contains the pricing of the subscription the user must activate to join the private channel. |
Returns
ExportedChatInviteGogram Example
// Creating ChatInviteExported constructor obj := &tg.ChatInviteExported{ Revoked: nil, Permanent: nil, RequestNeeded: nil, Link: "Hello, World!", AdminId: int64(1234567890), Date: 42, // ... more required fields }