Link Search Menu Expand Document

Method: phone.joinGroupCall

Back to methods index

Join a group call

Parameters:

NameTypeDescriptionRequired
mutedBoolIf set, the user will be muted by default upon joining.Optional
video_stoppedBoolIf set, the user’s video will be disabled by default upon joining.Optional
callInputGroupCallThe group callYes
join_asUsername, chat ID, Update, Message or InputPeerJoin the group call, presenting yourself as the specified user/channelOptional
invite_hashstringThe invitation hash from the invite link », if provided allows speaking in a livestream or muted group chat.Optional
paramsDataJSONWebRTC parametersYes

Return type: Updates

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