method ApiMethods.unpinAllGeneralForumTopicMessages
ApiMethods.unpinAllGeneralForumTopicMessages(args: { chat_id: number | string; }): true

Use this method to clear the list of pinned messages in a General forum topic. The bot must be an administrator in the chat for this to work and must have the can_pin_messages administrator right in the supergroup. Returns True on success.

Parameters

args: { chat_id: number | string; }

Return Type

true

Usage

import { type ApiMethods } from "types";