Layer 227
PhoneToggleGroupCallRecord
Start or stop recording a video chat/livestream, see here for more info. The recorded audio and video streams will be automatically sent to Saved Messages (the chat with ourselves).
method
Users
phone.toggleGroupCallRecord#f128c708 flags:# start:flags.0?true video:flags.2?true call:InputGroupCall title:flags.1?string video_portrait:flags.2?Bool = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Start | flags .0? true | Whether to start or stop recording |
| Video | flags .2? true | Whether to also record video streams |
| Call | InputGroupCall | Video chat/livestream to record |
| Title | flags .1? string | Recording title |
| VideoPortrait | flags .2? Bool | If video stream recording is enabled, whether to record in portrait or landscape mode |
Returns
UpdatesGogram Example
// PhoneToggleGroupCallRecord - positional arguments result, err := client.PhoneToggleGroupCallRecord(nil, nil, &tg.InputGroupCall{}, "Hello, World!", nil) if err != nil { // handle error } // result is *tg.Updates
Possible Errors
| Code | Type | Description |
|---|---|---|
| 403 | GROUPCALL_FORBIDDEN | The group call has already ended. |
| 400 | GROUPCALL_INVALID | The specified group call is invalid. |
| 400 | GROUPCALL_NOT_MODIFIED | Group call settings weren't modified. |