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