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

x/mtkruto/mod.ts>Client#getMessage

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

Retrieve a single message.

Examples

Example 1

const message = await client.getMessage("@MTKruto", 212);

Parameters

chatId: ChatID

The identifier of the chat to retrieve the message from.

messageId: number

The identifier of the message to retrieve.

Returns

Promise<Omit<Message, "replyToMessage"> | null>

The retrieved message.