Skip to main content

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

NameTypeRequiredDescription
PeerInputPhoneCallyesThe phone call
GA[]byteyesParameter for E2E encryption key exchange »
KeyFingerprintint64yesKey fingerprint
ProtocolPhoneCallProtocolyesPhone call settings

Returns

*PhonePhoneCall

Possible errors

CodeTypeDescription
400CALL_ALREADY_DECLINEDThe call was already declined.
400CALL_PEER_INVALIDThe provided call peer object is invalid.

References