channels.GetParticipant

class pyrogram.raw.functions.channels.GetParticipant

Get info about a channel/supergroup participant

Details:
  • Layer: 227

  • ID: A0AB6CC6

Parameters:
  • channel (InputChannel) – Channel/supergroup

  • participant (InputPeer) – Participant to get info about

Returns:

channels.ChannelParticipant

TL Schema

channels.getParticipant#a0ab6cc6
channel:InputChannel
participant:InputPeer

= channels.ChannelParticipant

Parameter Tree

GetParticipant
├── 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
└── participant → InputPeer
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_id → long
├── InputPeerUser
│ ├── user_id → long
│ └── access_hash → long
│ ├── channel_id → long
│ └── access_hash → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── user_id → long
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_id → int
└── channel_id → long

Example

await app.invoke(
    GetParticipant(
        channel=await app.resolve_channel(chat_id),
        participant=await app.resolve_peer(chat_id),
    )
)