Raw.messages.ExportChatInvite

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 undefined

    Legacy 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 undefined

    Whether admin confirmation is required before admitting each separate user into the chat

  • peer : Raw.TypeInputPeer

    Chat

  • expireDate : number or undefined

    Expiration date

  • usageLimit : number or undefined

    Maximum number of users that can join using this link

  • title : string or undefined

    Description of the invite link, visible only to administrators

Results

Raw.TypeExportedChatInvite

Bots can use