phone.acceptCall #

Accept incoming call, see here » for more info on the full flow.

Layer 223

phone.phoneCall#ec82e140 phone_call:PhoneCall users:Vector<User> = phone.PhoneCall;
---functions---
phone.acceptCall#3bd2b4a0 peer:InputPhoneCall g_b:bytes protocol:PhoneCallProtocol = phone.PhoneCall;

Parameters #

NameTypeDescription
peerInputPhoneCallThe call to accept
g_bbytesParameter for E2E encryption key exchange »
protocolPhoneCallProtocolPhone call settings

Result #

phone.PhoneCall

Only users can use this method #

Possible errors #

CodeTypeDescription
400CALL_ALREADY_ACCEPTEDThe call was already accepted.
400CALL_ALREADY_DECLINEDThe call was already declined.
500CALL_OCCUPY_FAILEDThe call failed because the user is already making another call.
400CALL_PEER_INVALIDThe provided call peer object is invalid.
406CALL_PROTOCOL_COMPAT_LAYER_INVALIDThe other side of the call does not support any of the VoIP protocols supported by the local client, as specified by the protocol.layer and protocol.library_versions fields.
400CALL_PROTOCOL_FLAGS_INVALIDCall protocol flags invalid.
400CALL_PROTOCOL_LAYER_INVALIDThe specified protocol layer version range is invalid.

End-to-End Encrypted Voice Calls #

Deprecated description of encryption in voice calls as implemented in Telegram apps older than version 7.0.

Phone calls #

Telegram supports end-to-end-encrypted one-to-one voice and video calls.