ToggleForumTopicIsPinned constructor

const ToggleForumTopicIsPinned({
  1. required int chatId,
  2. required int forumTopicId,
  3. required bool isPinned,
})

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

Implementation

const ToggleForumTopicIsPinned({
  required this.chatId,
  required this.forumTopicId,
  required this.isPinned,
});