Method: channels.getParticipants
Get the participants of a supergroup/channel
Parameters:
Name | Type | Description | Required |
---|---|---|---|
channel | Username, chat ID, Update, Message or InputChannel | Channel | Optional |
filter | ChannelParticipantsFilter | Which participant types to fetch | Yes |
offset | int | Offset | Optional |
limit | int | Limit | Optional |
hash | Array of long|string | Hash | Optional |
Return type: channels.ChannelParticipants
Can bots use this method: YES
MadelineProto Example (now async for huge speed and parallelism!):
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$channels_ChannelParticipants = $MadelineProto->channels->getParticipants(channel: $InputChannel, filter: $ChannelParticipantsFilter, offset: $int, limit: $int, hash: [$long\|string, $long\|string], );