Link Search Menu Expand Document

Method: phone.getGroupParticipants

Back to methods index

Get group call participants

Parameters:

NameTypeDescriptionRequired
callInputGroupCallGroup callYes
idsArray of Username, chat ID, Update, Message or InputPeerIf specified, will fetch group participant info about the specified peersYes
sourcesArray of intIf specified, will fetch group participant info about the specified WebRTC source IDsYes
offsetstringOffset for results, taken from the next_offset field of phone.groupParticipants, initially an empty string.
Note: if no more results are available, the method call will return an empty next_offset; thus, avoid providing the next_offset returned in phone.groupParticipants if it is empty, to avoid an infinite loop.
Optional
limitintMaximum number of results to return, see paginationOptional

Return type: phone.GroupParticipants

Can userbots use this method: YES

Can bots use this method: NO

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();

$phone_GroupParticipants = $MadelineProto->phone->getGroupParticipants(call: $InputGroupCall, ids: [$InputPeer, $InputPeer], sources: [$int, $int], offset: 'string', limit: $int, );