reorder_folders()

Client.reorder_folders()

Change the order of chat folders.

Usable by Users Bots
Parameters:
  • folder_ids (List of int) – Identifiers of chat folders in the new correct order.

  • main_chat_list_position (int, optional) – Position of the main chat list among chat folders, 0-based. Can be non-zero only for Premium users.

Returns:

bool – True, on success.

Example

# Reorder folders
await app.reorder_folders([2, 5, 4])