unpinMessage

Unpin a pinned message.

Parameters

chatId: ID

The identifier of the chat that contains the message.

messageId: number

The message’s identifier.

businessConnectionId?: string

The identifier of a business connection ID to perform the action on. Bot-only.

Result

void

Syntax

// Required parameters only.
await client.unpinMessage(chatId, messageId);

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