mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 23:16:56 +01:00
24 lines
717 B
Markdown
24 lines
717 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
|
|
---
|
|
## 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
|
|
|
|
### Params:
|
|
|
|
| Name | Type | Required | Description |
|
|
|----------|---------------|----------|-------------|
|
|
|chat\_id|[int53](../types/int53.md) | Yes|Chat identifier|
|
|
|is\_pinned|[Bool](../types/Bool.md) | Yes|New value of is_pinned|
|
|
|
|
|
|
### Return type: [Ok](../types/Ok.md)
|
|
|