• Mark chat history as read.

    Parameters

    • client: ITelegramClient
    • chatId: InputPeerLike

      Chat ID

    • Optionalparams: { clearMentions?: boolean; maxId?: number; shouldDispatch?: true }
      • OptionalclearMentions?: boolean

        Whether to also clear all mentions in the chat

      • OptionalmaxId?: number

        Message up until which to read history

        0, i.e. read everything
        
      • OptionalshouldDispatch?: true

        Whether to dispatch updates that will be generated by this call. Doesn't follow disableNoDispatch

    Returns Promise<void>