pinMessage

Pin a message in a chat.

PARAMETERS
chatId: ID

The identifier of the chat that contains the message.

messageId: number

The message’s identifier.

bothSides?: boolean

Whether to pin the message for both sides. For private chats only.

disableNotification?: boolean

Whether to silently pin the message.

RESULT
void
SYNTAX
// Required parameters only.
await client.pinMessage(chatId, messageId);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.pinMessage(chatId, messageId, { bothSides, disableNotification });