Method: phone.getGroupParticipants
Get group call participants
Parameters:
Name | Type | Description | Required |
---|---|---|---|
call | InputGroupCall | Group call | Yes |
ids | Array of Username, chat ID, Update, Message or InputPeer | If specified, will fetch group participant info about the specified peers | Yes |
sources | Array of int | If specified, will fetch group participant info about the specified WebRTC source IDs | Yes |
offset | string | Offset 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 |
limit | int | Maximum number of results to return, see pagination | Optional |
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, );