TDLib v0.0.2 TDLib.Method.ToggleChatIsPinned View Source

Changes the pinned state of a chat. You can pin up to GetOption(“pinned_chat_count_max”) non-secret chats and the same number of secret chats. Returns object_ptr.

NameTypeDescription
chat_idstringChat identifier.
is_pinnedboolNew value of is_pinned.

More details on telegram’s documentation.