Skip to main content

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

NameTypeRequiredDescription
StartboolWhether to start or stop recording
VideoboolWhether to also record video streams
CallInputGroupCallClassyesThe group call or livestream
TitlestringRecording title
VideoPortraitboolIf video stream recording is enabled, whether to record in portrait or landscape mode

Returns

UpdatesClass

Possible errors

CodeTypeDescription
403GROUPCALL_FORBIDDENThe group call has already ended.
400GROUPCALL_INVALIDThe specified group call is invalid.
400GROUPCALL_NOT_MODIFIEDGroup call settings weren't modified.

References