Constructors

  • Parameters

    • invite: RawChatInvite
    • link: string

      Original invite link used to fetch this preview

    Returns ChatPreview

Properties

link: string

Original invite link used to fetch this preview

Accessors

  • get customVerification(): null | BotVerification
  • If non-null, this user was verified by a bot, and this field contains the ID of the custom emoji to display as the verification icon.

    Returns null | BotVerification

  • get memberCount(): number
  • Total chat member count

    Returns number

  • get photo(): null | Photo
  • Chat photo

    Returns null | Photo

  • get public(): boolean
  • Whether this chat is public

    Returns boolean

  • get someMembers(): readonly User[]
  • Preview of some of the chat members.

    This usually contains around 10 members, and members that are inside your contacts list are ordered before others.

    Returns readonly User[]

  • get title(): string
  • Title of the chat

    Returns string

  • get withApproval(): boolean
  • Whether by using this link you'll also need to wait for admin approval.

    Returns boolean