Information about one chat member

Constructors

Properties

_peers: PeersIndex

Accessors

  • get invitedBy(): null | User
  • Information about whoever invited this member to the chat.

    Only available in the following cases:

    • user is yourself
    • chat is a legacy group
    • chat is a supergroup/channel, and user is an admin

    Returns null | User

  • get isMember(): boolean
  • Whether this member is a part of the chat now.

    Makes sense only when status = restricted or staus = banned

    Returns boolean

  • get joinedDate(): null | Date
  • Date when the user has joined the chat.

    Not available for creators and left members

    Returns null | Date

  • get permissions(): null | RawChatAdminRights
  • For admins and creator of supergroup/channels, list of their admin permissions.

    Also contains whether this admin is anonymous.

    Returns null | RawChatAdminRights

  • get promotedBy(): null | User
  • Information about whoever promoted this admin.

    Only available if status = admin.

    Returns null | User

  • get restrictedBy(): null | User
  • Information about whoever restricted this user.

    Only available if status = restricted or status = banned

    Returns null | User

  • get restrictions(): null | ChatPermissions
  • For restricted and banned users, information about the restrictions

    Returns null | ChatPermissions

  • get subscriptionUntilDate(): null | Date
  • If this member subscribed to a channel using Telegram Stars, this field will contain the date when the subscription will expire

    Returns null | Date

  • get title(): null | string
  • Custom title (for creators and admins).

    null for non-admins and in case custom title is not set.

    Returns null | string

  • get user(): User
  • Information about the user

    Returns User