toggle_chat_is_pinned


Description:

public async Ok toggle_chat_is_pinned (ChatList chat_list, int64 chat_id, bool is_pinned) throws TDLibError

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

Parameters:

chat_list

Chat list in which to change the pinned state of the chat

chat_id

Chat identifier

is_pinned

Pass true to pin the chat; pass false to unpin it