Raw.messages.ExportChatInvite
Export an invite link for a chat
messages.exportChatInvite#a02ce5d5 flags:# legacy_revoke_permanent:flags.2?true request_needed:flags.3?true peer:InputPeer expire_date:flags.0?int usage_limit:flags.1?int title:flags.4?string = ExportedChatInvite;
export namespace Raw {
export namespace messages {
export class ExportChatInvite {
constructor(params: {
legacyRevokePermanent?: boolean;
requestNeeded?: boolean;
peer: Raw.TypeInputPeer;
expireDate?: number;
usageLimit?: number;
title?: string;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0xa02ce5d5
Property
legacyRevokePermanent
: boolean or undefinedLegacy 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.
requestNeeded
: boolean or undefinedWhether admin confirmation is required before admitting each separate user into the chat
peer
: Raw.TypeInputPeerChat
expireDate
: number or undefinedExpiration date
usageLimit
: number or undefinedMaximum number of users that can join using this link
title
: string or undefinedDescription of the invite link, visible only to administrators