channels.GetParticipants

class pyrogram.raw.functions.channels.GetParticipants

Get the participants of a supergroup/channel

Details:
  • Layer: 227

  • ID: 77CED9D0

Parameters:
  • channel (InputChannel) – Channel

  • filter (ChannelParticipantsFilter) – Which participant types to fetch

  • offset (int 32-bit) – Offset

  • limit (int 32-bit) – Limit

  • hash (int 64-bit) – Hash

Returns:

channels.ChannelParticipants

TL Schema

channels.getParticipants#77ced9d0
channel:InputChannel
filter:ChannelParticipantsFilter
offset:int
limit:int
hash:long

= channels.ChannelParticipants

Parameter Tree

GetParticipants
├── 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
├── filter → ChannelParticipantsFilter
│ │ └── q → string
│ │ └── q → string
│ │ └── q → string
│ │ └── q → string
│ ├── q → string (optional)
│ └── top_msg_id → int (optional)
├── offset → int
├── limit → int
└── hash → long

Example

await app.invoke(
    GetParticipants(
        channel=await app.resolve_channel(chat_id),
        filter=ChannelParticipantsRecent(),
        offset=0,
        limit=0,
        hash=0,
    )
)