getMessage

Retrieve a single message.

Parameters

chatId: ID

The identifier of the chat to retrieve the message from.

messageId: number

The identifier of the message to retrieve.

Result

Message | null

The retrieved message.

Syntax

await client.getMessage(chatId, messageId);

Examples

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