--- title: setPinnedChats description: Changes list or order of pinned chats --- ## Method: setPinnedChats [Back to methods index](index.md) YOU CANNOT USE THIS METHOD IN MADELINEPROTO Changes list or order of pinned chats ### Params: | Name | Type | Required | Description | |----------|---------------|----------|-------------| |chat\_ids|Array of [int53](../types/int53.md) | Yes|New list of pinned chats| ### Return type: [Ok](../types/Ok.md)