readMessages

Mark messages as read. USER-ONLY

Parameters

chatId: ID

The identifier of the chat which the messages belong to.

untilMessageId: number

The identifier of the message that will be marked as read, along with any other unread messages before it.

Result

void

Syntax

await client.readMessages(chatId, untilMessageId);