mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 17:55:35 +01:00
1.8 KiB
1.8 KiB
title | description | grand_parent | parent | image | redirect_from |
---|---|---|---|---|---|
phone.toggleGroupCallRecord | Start or stop recording a group call: the recorded audio and video streams will be automatically sent to `Saved messages` (the chat with ourselves). | Telegram RPC API | Methods | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png | /API_docs/methods/phone_toggleGroupCallRecord.html |
Method: phone.toggleGroupCallRecord
Start or stop recording a group call: the recorded audio and video streams will be automatically sent to Saved messages
(the chat with ourselves).
Parameters:
Name | Type | Description | Required |
---|---|---|---|
start | Bool | Whether to start or stop recording | Optional |
video | Bool | Whether to also record video streams | Optional |
call | InputGroupCall | The group call or livestream | Yes |
title | string | Recording title | Optional |
video_portrait | Bool | If video stream recording is enabled, whether to record in portrait or landscape mode | 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->toggleGroupCallRecord(start: $Bool, video: $Bool, call: $InputGroupCall, title: 'string', video_portrait: $Bool, );