Constructors

Properties

Accessors

  • get chatId(): number
  • Marked peer ID of the chat where the messages were read.

    Returns number

  • get isDiscussion(): boolean
  • Whether this update is about messages in a thread (e.g. a comments thread or a topic in a forum)

    Returns boolean

  • get isOutbox(): boolean
  • Whether this update is about an "outbox" read (i.e. a message you have sent earlier was read)

    Returns boolean

  • get maxReadId(): number
  • ID of the last read message.

    Note that if isDiscussion == true, this contains the ID of the last read message inside that thread, and not in the group itself.

    Returns number

  • get threadId(): number
  • ID of the thread/topic (i.e. ID of the top message).

    For non-thread updates, 0.

    Returns number

  • get unreadCount(): number
  • For inbox updates (i.e. isOutbox = false), number of messages that are still unread in the chat.

    For other updates, 0

    Returns number