reorder_bot_usernames()

async Client.reorder_bot_usernames()

Reorder active usernames associated to a bot we own.

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

  • order (List of str) – The new order for active usernames. All active usernames must be specified.

Returns:

bool – On success, True is returned.

Example

await app.reorder_bot_usernames("my_bot", ["user1_bot", "user2_bot"])