readMessages

Mark messages as read. User-only.

Parameters

chatId: number

The identifier of the chat that includes the messages.

untilMessageId: number

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

Result

void

Syntax

await client.readMessages(chatId, untilMessageId);