telegram api method · layer 229 · #3bd2b4a0

phone.acceptCall

usable by users

Accept incoming call

definition

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

returns

phone.PhoneCall

errors (9)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400CALL_ALREADY_ACCEPTEDThe call was already accepted.
400CALL_ALREADY_DECLINEDThe call was already declined.
400CALL_PEER_INVALIDThe provided call peer object is invalid.
400CALL_PROTOCOL_FLAGS_INVALIDCall protocol flags invalid.
400CALL_PROTOCOL_LAYER_INVALIDThe specified protocol layer version range is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).
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.
500CALL_OCCUPY_FAILEDThe call failed because the user is already making another call.

history

present in layers 62–229 · constructor id changed 1×

idlayers
#220f0b2062
#3bd2b4a065–229