reorder_pinned_forum_topics()

async Client.reorder_pinned_forum_topics()

Reorder pinned forum topics in a forum supergroup.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

  • order (List of int) – List of topic IDs in the desired order.

  • force (bool, optional) – Pass True to overwrite the entire server-side pinned topic list. Defaults to None.

Returns:

bool – On success, True is returned.

Example

await app.reorder_pinned_forum_topics(chat_id, [123, 456])