mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
1.9 KiB
1.9 KiB
title | description | grand_parent | parent | image | redirect_from |
---|---|---|---|---|---|
phone.joinGroupCall | Join a group call | Telegram RPC API | Methods | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png | /API_docs/methods/phone_joinGroupCall.html |
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 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, );