Skip to main content

phone.saveCallLog

Deprecated: send libtgvoip phone call debug information

func (c *Client) PhoneSaveCallLog(ctx context.Context, request *PhoneSaveCallLogRequest) (bool, error)

Calling this method

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

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

Parameters

NameTypeRequiredDescription
PeerInputPhoneCallyesPhone call
FileInputFileClassyesLibtgvoip logs

Returns

bool

Possible errors

CodeTypeDescription
400CALL_PEER_INVALIDThe provided call peer object is invalid.

References