Update representing a change in the status of a chat/channel member.

Constructors

Properties

_peers: PeersIndex

Accessors

  • get actor(): User
  • Performer of the action which resulted in this update.

    Can be chat/channel administrator or the user themself.

    Returns User

  • get chat(): Chat
  • Chat in which this event has occurred

    Returns Chat

  • get date(): Date
  • Date of the event

    Returns Date

  • In case this is a "join" event, invite link that was used to join (if any)

    Returns null | ChatInviteLink

  • get isSelf(): boolean
  • Whether this is an update about current user

    Returns boolean

  • get isSelfMade(): boolean
  • Whether this is a self-made action (i.e. actor == user)

    Returns boolean

  • get newMember(): null | ChatMember
  • Current (new) information about chat member.

    Returns null | ChatMember

  • get oldMember(): null | ChatMember
  • Previous (old) information about chat member.

    Returns null | ChatMember

  • get user(): User
  • User representing the chat member whose status was changed.

    Returns User