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).
func (c *Client) PhoneToggleGroupCallRecord(ctx context.Context, request *PhoneToggleGroupCallRecordRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PhoneToggleGroupCallRecord(ctx, &tg.PhoneToggleGroupCallRecordRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Start | bool | — | Whether to start or stop recording |
Video | bool | — | Whether to also record video streams |
Call | InputGroupCallClass | yes | The group call or livestream |
Title | string | — | Recording title |
VideoPortrait | bool | — | If video stream recording is enabled, whether to record in portrait or landscape mode |
Returns
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. |
References
- Official documentation
- Generated Go reference
- TL definition:
phone.toggleGroupCallRecord#f128c708