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
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPhoneCall | yes | Phone call |
Debug | DataJSON | yes | Debug statistics obtained from tgcalls |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CALL_PEER_INVALID | The provided call peer object is invalid. |
| 400 | DATA_JSON_INVALID | The provided JSON data is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
phone.saveCallDebug#277add7e