Layer 220
PhoneToggleGroupCallRecord
Start or stop recording a group call: the recorded audio and video streams will be automatically sent to Saved messages (the chat with ourselves).
method
Users
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Start | flags.0?true | Whether to start or stop recording |
| Video | flags.2?true | Whether to also record video streams |
| Call | InputGroupCall | The group call or livestream |
| 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
UpdatesPossible 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. |
Gogram Example
// PhoneToggleGroupCallRecord - using Params struct result, err := client.PhoneToggleGroupCallRecord(&tg.PhoneToggleGroupCallRecordParams{ Call: &tg.InputGroupCall{}, // Optional fields: // Start: true, // Video: true, // Title: "...", // VideoPortrait: true, }) if err != nil { // handle error } // result is *tg.Updates