bots.ReorderUsernames

class pyrogram.raw.functions.bots.ReorderUsernames

Reorder usernames associated to a bot we own.

Details:
  • Layer: 223

  • ID: 9709B1C2

Parameters:
  • bot (InputUser) – The bot

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

Returns:

bool

TL Schema

bots.reorderUsernames#9709b1c2
bot:InputUser
order:Vector<string>

= Bool

Parameter Tree

ReorderUsernames
├── botInputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ └── InputUserFromMessage
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
└── orderVector < string >

Example

await app.invoke(
    ReorderUsernames(
        bot=await app.resolve_user(chat_id),
        order=["text"],
    )
)