1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 02:26:55 +01:00
MadelineProto/docs/TD_docs/methods/toggleChatIsPinned.md

739 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

Parameters:

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

Return type: Ok