mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-11 00:30:26 +01:00
2.2 KiB
2.2 KiB
title | description | grand_parent | parent | image | redirect_from |
---|---|---|---|---|---|
phone.getGroupParticipants | Get group call participants | Telegram RPC API | Methods | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png | /API_docs/methods/phone_getGroupParticipants.html |
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 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, );