channels.ToggleParticipantsHidden

class pyrogram.raw.functions.channels.ToggleParticipantsHidden

Hide or display the participants list in a supergroup.

Details:
  • Layer: 227

  • ID: 6A6E7854

Parameters:
  • channel (InputChannel) – Supergroup ID

  • enabled (bool) – If true, will hide the participants list; otherwise will unhide it.

Returns:

Updates

TL Schema

channels.toggleParticipantsHidden#6a6e7854
channel:InputChannel
enabled:Bool

= Updates

Parameter Tree

ToggleParticipantsHidden
├── 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
└── enabled → Bool

Example

await app.invoke(
    ToggleParticipantsHidden(
        channel=await app.resolve_channel(chat_id),
        enabled=True,
    )
)