unpinMessages

Unpin all pinned messages.

Parameters

chatId: ID

The identifier of a chat.

topicId?: number

A topic ID. If provided, messages in that topic will be unpinned.

Result

void

Syntax

// Required parameters only.
await client.unpinMessages(chatId);

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