Airgram

Guides
/
/
Methods

api.setPinnedChats()

Changes the order of pinned chats

Parameters SetPinnedChatsParams:

NameTypeDescription
chatList Chat list in which to change the order of pinned chats
chatIdsnumber[] The new list of pinned chats
Returns ApiResponse interface:
interface ApiResponse {
  _: 'setPinnedChats' | 'error'
  airgram: Airgram
  request: {
    method: 'setPinnedChats'
    params: SetPinnedChatsParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}