Link Search Menu Expand Document

Method: channels.getParticipants

Back to methods index

Get the participants of a supergroup/channel

Parameters:

NameTypeDescriptionRequired
channelUsername, chat ID, Update, Message or InputChannelChannelOptional
filterChannelParticipantsFilterWhich participant types to fetchYes
offsetintOffsetOptional
limitintLimitOptional
hashArray of longHashOptional

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, $long], );