MadelineProtoDocs/docs/API_docs/methods/phone.checkGroupCall.md
2024-05-01 14:53:46 +02:00

1.5 KiB

title description grand_parent parent image redirect_from
phone.checkGroupCall Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs. Telegram RPC API Methods https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/methods/phone_checkGroupCall.html

Method: phone.checkGroupCall

Back to methods index

Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs.
Returns an intersection of the source IDs specified in sources, and the source IDs currently being forwarded by the SFU.

Parameters:

Name Type Description Required
call InputGroupCall Group call Yes
sources Array of int Source IDs Yes

Return type: Vector_of_int

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

$Vector_of_int = $MadelineProto->phone->checkGroupCall(call: $InputGroupCall, sources: [$int, $int], );