Implements

Constructors

Properties

state: RefMessagesState

Methods

  • Delete reference messages given the chatId where msgId is one of msgIds

    Parameters

    • chatId: number
    • msgIds: number[]

    Returns void

  • Parameters

    • peerId: number

    Returns void

  • Get the reference message for the given peerId.

    If more than one reference message is stored for the given peerId, the one with the highest msgId should be returned, but this is not really important.

    Parameters

    • peerId: number

    Returns null | [number, number]

  • Store a reference message

    Parameters

    • peerId: number
    • chatId: number
    • msgId: number

    Returns void