Layer 220
PhoneAcceptCall
Accept incoming call
method
Users
phone.acceptCall#3bd2b4a0 peer:InputPhoneCall g_b:bytes protocol:PhoneCallProtocol = phone.PhoneCall;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPhoneCall | The call to accept |
| GB | bytes | Parameter for E 2 E encryption key exchange |
| Protocol | PhoneCallProtocol | Phone call settings |
Returns
phone.PhoneCallPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CALL_ALREADY_ACCEPTED | The call was already accepted. |
| 400 | CALL_ALREADY_DECLINED | The call was already declined. |
| 500 | CALL_OCCUPY_FAILED | The call failed because the user is already making another call. |
| 400 | CALL_PEER_INVALID | The provided call peer object is invalid. |
| 406 | CALL_PROTOCOL_COMPAT_LAYER_INVALID | The other side of the call does not support any of the Vo IP protocols supported by the local client, as specified by the protocol. layer and protocol. library_versions fields. |
| 400 | CALL_PROTOCOL_FLAGS_INVALID | Call protocol flags invalid. |
| 400 | CALL_PROTOCOL_LAYER_INVALID | The specified protocol layer version range is invalid. |
Gogram Example
// PhoneAcceptCall - positional arguments result, err := client.PhoneAcceptCall(&tg.InputPhoneCall{}, []byte{}, &tg.PhoneCallProtocol{}) if err != nil { // handle error } // result is *tg.PhonePhoneCall