Interface ToggleForumTopicIsPinned

Changes the pinned state of a forum topic; requires can_manage_topics 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;
    is_pinned?: boolean;
    message_thread_id: number;
}

Properties

@type: "toggleForumTopicIsPinned"
chat_id: number

Chat identifier.

is_pinned?: boolean

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

message_thread_id: number

Message thread identifier of the forum topic.