channels.ReorderUsernames

class pyrogram.raw.functions.channels.ReorderUsernames

Reorder active usernames

Details:
  • Layer: 227

  • 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
├── channel → InputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
└── order → Vector < string >

Example

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