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

24 lines
739 B
Markdown
Raw Normal View History

2017-08-25 15:05:53 +02:00
---
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
### Parameters:
2017-08-25 15:05:53 +02:00
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2018-03-20 16:42:05 +01:00
|chat\_id|[CLICK ME int53](../types/int53.md) | Yes|Chat identifier|
|is\_pinned|[CLICK ME Bool](../types/Bool.md) | Yes|New value of is_pinned|
2017-08-25 15:05:53 +02:00
### Return type: [Ok](../types/Ok.md)