Method: phone.joinGroupCall
Join a group call
Parameters:
Name | Type | Description | Required |
---|---|---|---|
muted | Bool | If set, the user will be muted by default upon joining. | Optional |
video_stopped | Bool | If set, the user’s video will be disabled by default upon joining. | Optional |
call | InputGroupCall | The group call | Yes |
join_as | Username, chat ID, Update, Message or InputPeer | Join the group call, presenting yourself as the specified user/channel | Optional |
invite_hash | string | The invitation hash from the invite link », if provided allows speaking in a livestream or muted group chat. | Optional |
params | DataJSON | WebRTC parameters | Yes |
Return type: Updates
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();
$Updates = $MadelineProto->phone->joinGroupCall(muted: $Bool, video_stopped: $Bool, call: $InputGroupCall, join_as: $InputPeer, invite_hash: 'string', params: $DataJSON, );