MadelineProtoDocs/docs/TD_docs/methods/toggleChatIsPinned.md

798 B

title description image
toggleChatIsPinned Changes chat pinned state. You can pin up to getOption("pinned_chat_count_max") non-secret chats and the same number of secret chats https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Method: toggleChatIsPinned

Back to methods index

YOU CANNOT USE THIS METHOD IN MADELINEPROTO

Changes chat pinned state. You can pin up to getOption("pinned_chat_count_max") non-secret chats and the same number of secret chats

Parameters:

Name Type Description Required
chat_id int53 Chat identifier Yes
is_pinned Bool New value of is_pinned Yes

Return type: Ok