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
| Name | Type | Description |
|---|---|---|
| chat_id | string | Chat identifier. |
| is_pinned | bool | New value of is_pinned. |
More details on telegram’s documentation.