Interface ToggleSavedMessagesTopicIsPinned

Changes the pinned state of a Saved Messages topic. There can be up to getOption("pinned_saved_messages_topic_count_max") pinned topics. The limit can be increased with Telegram Premium. Request type for Tdjson#toggleSavedMessagesTopicIsPinned.

interface ToggleSavedMessagesTopicIsPinned {
    @type: "toggleSavedMessagesTopicIsPinned";
    is_pinned?: boolean;
    saved_messages_topic_id: number;
}

Properties

@type: "toggleSavedMessagesTopicIsPinned"
is_pinned?: boolean

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

saved_messages_topic_id: number

Identifier of Saved Messages topic to pin or unpin.