--- 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 ### Parameters: | Name | Type | Required | Description | |----------|---------------|----------|-------------| |chat\_ids|Array of [CLICK ME int53](../types/int53.md) | Yes|New list of pinned chats| ### Return type: [Ok](../types/Ok.md)