getMessages

Retrieve multiple messages.

Parameters

chatId: ID

The identifier of the chat to retrieve the messages from.

messageIds: number[]

The identifiers of the messages to retrieve.

Result

The retrieved messages.

Syntax

await client.getMessages(chatId, messageIds);

Examples

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