phone.confirmCall
Complete phone call E2E encryption key exchange », see here » for more info on the full flow.
func (c *Client) PhoneConfirmCall(ctx context.Context, request *PhoneConfirmCallRequest) (*PhonePhoneCall, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PhoneConfirmCall(ctx, &tg.PhoneConfirmCallRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *PhonePhoneCall
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPhoneCall | yes | The phone call |
GA | []byte | yes | Parameter for E2E encryption key exchange » |
KeyFingerprint | int64 | yes | Key fingerprint |
Protocol | PhoneCallProtocol | yes | Phone call settings |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CALL_ALREADY_DECLINED | The call was already declined. |
| 400 | CALL_PEER_INVALID | The provided call peer object is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
phone.confirmCall#2efe1722