Skip to main content

phone.saveCallDebug

Send phone call debug data to server.

func (c *Client) PhoneSaveCallDebug(ctx context.Context, request *PhoneSaveCallDebugRequest) (bool, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.PhoneSaveCallDebug(ctx, &tg.PhoneSaveCallDebugRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
PeerInputPhoneCallyesPhone call
DebugDataJSONyesDebug statistics obtained from tgcalls

Returns

bool

Possible errors

CodeTypeDescription
400CALL_PEER_INVALIDThe provided call peer object is invalid.
400DATA_JSON_INVALIDThe provided JSON data is invalid.

References