mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
2.7 KiB
2.7 KiB
title | description | grand_parent | parent | image | redirect_from |
---|---|---|---|---|---|
phone.editGroupCallParticipant | Edit information about a given group call participant | Telegram RPC API | Methods | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png | /API_docs/methods/phone_editGroupCallParticipant.html |
Method: phone.editGroupCallParticipant
Edit information about a given group call participant
Note: flags.N?Bool parameters can have three possible values:
- If the TL flag is not set, the previous value will not be changed.
- If the TL flag is set and contains a boolTrue, the previous value will be overwritten to
true
. - If the TL flag is set and contains a boolFalse, the previous value will be overwritten to
false
.
Parameters:
Name | Type | Description | Required |
---|---|---|---|
call | InputGroupCall | The group call | Yes |
participant | Username, chat ID, Update, Message or InputPeer | The group call participant (can also be the user itself) | Optional |
muted | Bool | Whether to mute or unmute the specified participant | Optional |
volume | int | New volume | Optional |
raise_hand | Bool | Raise or lower hand | Optional |
video_stopped | Bool | Start or stop the video stream | Optional |
video_paused | Bool | Pause or resume the video stream | Optional |
presentation_paused | Bool | Pause or resume the screen sharing stream | Optional |
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->editGroupCallParticipant(call: $InputGroupCall, participant: $InputPeer, muted: $Bool, volume: $int, raise_hand: $Bool, video_stopped: $Bool, video_paused: $Bool, presentation_paused: $Bool, );