Constructors

Properties

_messages?: Map<number, TypeMessage>
_peers: PeersIndex
COLOR_BLUE: number = 0x6FB9F0
COLOR_GREEN: number = 0x8EEE98
COLOR_PINK: number = 0xFF93B2
COLOR_PURPLE: number = 0xCB86DB
COLOR_RED: number = 0xFB6F5F
COLOR_YELLOW: number = 0xFFD67E

Accessors

  • get creator(): Peer
  • Creator of the topic

    Returns Peer

  • get date(): Date
  • Date when the topic was created

    Returns Date

  • get draftMessage(): null | DraftMessage
  • Draft message in the topic

    Returns null | DraftMessage

  • get iconColor(): null | number
  • Color of the topic's icon, used as a fallback in case iconEmoji is not set.

    One of the static COLOR_* fields.

    Returns null | number

  • get iconCustomEmoji(): null | Long
  • Emoji used as the topic's icon.

    Returns null | Long

  • get id(): number
  • ID of the topic

    Returns number

  • get isClosed(): boolean
  • Whether the topic is closed

    Returns boolean

  • get isMy(): boolean
  • Whether the topic was created by the current user

    Returns boolean

  • get isPinned(): boolean
  • Whether the topic is pinned

    Returns boolean

  • get isShort(): boolean
  • Whether this constructor is a reduced version of the full topic information.

    If true, only isMy, isClosed, id, date, title, iconColor, iconCustomEmoji and creator parameters will contain valid information.

    Returns boolean

  • get lastMessage(): Message
  • The latest message sent in this topic

    Returns Message

  • get lastRead(): number
  • ID of the last read message in this topic

    Returns number

  • get lastReadIngoing(): number
  • ID of the last read outgoing message in this topic

    Returns number

  • get lastReadOutgoing(): number
  • ID of the last read ingoing message in this topic

    Returns number

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

    Returns string

  • get unreadCount(): number
  • Number of unread messages in the topic

    Returns number

  • get unreadMentionsCount(): number
  • Number of unread mentions in the topic

    Returns number

  • get unreadReactionsCount(): number
  • Number of unread reactions in the topic

    Returns number

Methods