ToggleSavedMessagesTopicIsPinned constructor

const ToggleSavedMessagesTopicIsPinned({
  1. required int savedMessagesTopicId,
  2. required bool isPinned,
})

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

Implementation

const ToggleSavedMessagesTopicIsPinned({
  required this.savedMessagesTopicId,
  required this.isPinned,
});