Interface ToggleForumTopicIsPinned

Changes the pinned state of a topic in a forum supergroup chat or a chat with a bot with topics; requires can_manage_topics administrator right in the supergroup. There can be up to getOption("pinned_forum_topic_count_max") pinned forum topics. Request type for Tdjson#toggleForumTopicIsPinned.

interface ToggleForumTopicIsPinned {
    @type: "toggleForumTopicIsPinned";
    chat_id: number;
    forum_topic_id: number;
    is_pinned?: boolean;
}

Properties

@type: "toggleForumTopicIsPinned"
chat_id: number

Chat identifier.

forum_topic_id: number

Forum topic identifier.

is_pinned?: boolean

Pass true to pin the topic; pass false to unpin it.