Raw.ChatInviteExported
Exported chat invite
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;
export namespace Raw {
export class ChatInviteExported {
constructor(params: {
revoked?: boolean;
permanent?: boolean;
requestNeeded?: boolean;
link: string;
adminId: bigint;
date: number;
startDate?: number;
expireDate?: number;
usageLimit?: number;
usage?: number;
requested?: number;
subscriptionExpired?: number;
title?: string;
subscriptionPricing?: Raw.TypeStarsSubscriptionPricing;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 198
Constructor ID: 0xa22cbd96
Property
revoked
: boolean or undefinedWhether this chat invite was revoked
permanent
: boolean or undefinedWhether this chat invite has no expiration
requestNeeded
: boolean or undefinedWhether users importing this invite link will have to be approved to join the channel or group
link
: stringChat invitation link
adminId
: bigintId of the admin that created this chat invite
date
: numberWhen was this chat invite created
startDate
: number or undefinedWhen was this chat invite last modified
expireDate
: number or undefinedWhen does this chat invite expire
usageLimit
: number or undefinedMaximum number of users that can join using this link
usage
: number or undefinedHow many users joined using this link
requested
: number or undefinedNumber of users that have already used this link to join
subscriptionExpired
: number or undefinedFor 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
: string or undefinedCustom description for the invite link, visible only to admins
subscriptionPricing
: Raw.TypeStarsSubscriptionPricing or undefinedFor telegram star subscriptions, contains the pricing of the subscription the user must activate to join the private channel.