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

x/mtkruto/mod.ts>Client#getMessages

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

Retrieve multiple messages.

Examples

Example 1

const message = await client.getMessages("@MTKruto", [210, 212]);

Parameters

chatId: ID

The identifier of the chat to retrieve the messages from.

messageIds: number[]

The identifiers of the messages to retrieve.

Returns

Promise<Message[]>

The retrieved messages.