Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/mod.ts>Client#readMessages

Cross-runtime JavaScript library for building Telegram clients
Latest
method Client.prototype.readMessages
import { Client } from "https://deno.land/x/mtkruto@0.6.3/mod.ts";

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.

Returns

Promise<void>