channels.ReorderUsernames

class pyrogram.raw.functions.channels.ReorderUsernames

Reorder active usernames

Details:
  • Layer: 223

  • ID: B45CED1D

Parameters:
  • channel (InputChannel) – The supergroup or channel

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

Returns:

bool

TL Schema

channels.reorderUsernames#b45ced1d
channel:InputChannel
order:Vector<string>

= Bool

Parameter Tree

ReorderUsernames
├── channelInputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── orderVector < string >

Example

await app.invoke(
    ReorderUsernames(
        channel=await app.resolve_channel(chat_id),
        order=["text"],
    )
)