ToggleChatIsPinned constructor

const ToggleChatIsPinned({
  1. required ChatList chatList,
  2. required int chatId,
  3. required bool isPinned,
})

Changes the pinned state of a chat. There can be up to GetOption("pinned_chat_count_max")/GetOption("pinned_archived_chat_count_max") pinned non-secret chats and the same number of secret chats in the main/arhive chat list

Implementation

const ToggleChatIsPinned({
  required this.chatList,
  required this.chatId,
  required this.isPinned,
});