MadelineProto/docs/TD_docs/methods/toggleChatIsPinned.md
2017-08-25 15:05:53 +02:00

725 B

title description
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

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

Params:

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

Return type: Ok