25 lines
798 B
Markdown
25 lines
798 B
Markdown
---
|
|
title: toggleChatIsPinned
|
|
description: Changes chat pinned state. You can pin up to getOption("pinned_chat_count_max") non-secret chats and the same number of secret chats
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
---
|
|
# Method: toggleChatIsPinned
|
|
[Back to methods index](index.md)
|
|
|
|
|
|
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](../types/int53.md) | Chat identifier | Yes|
|
|
|is\_pinned|[Bool](../types/Bool.md) | New value of is_pinned | Yes|
|
|
|
|
|
|
### Return type: [Ok](../types/Ok.md)
|
|
|