ToggleChatIsPinned constructor

ToggleChatIsPinned(
  1. {required ChatList chat_list,
  2. required int chat_id,
  3. required bool is_pinned,
  4. int? extra,
  5. int? clientId}
)

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/archive chat list. The limit can be increased with Telegram Premium

Returns Ok

Implementation

ToggleChatIsPinned