Link Search Menu Expand Document

Method: phone.toggleGroupCallRecord

Back to methods index

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:

NameTypeDescriptionRequired
startBoolWhether to start or stop recordingOptional
videoBoolWhether to also record video streamsOptional
callInputGroupCallThe group call or livestreamYes
titlestringRecording titleOptional
video_portraitBoolIf video stream recording is enabled, whether to record in portrait or landscape modeOptional

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