telegram api method · layer 229 · #42ff96ed

phone.requestCall

usable by users

Start a telegram phone call

definition

phone.requestCall#42ff96ed flags:# video:flags.0?true user_id:InputUser random_id:int g_a_hash:bytes protocol:PhoneCallProtocol = phone.PhoneCall;

parameters

nametypedescription
flags#Flags, see TL conditional fields
videoflags.0?trueWhether to start a video call
user_idInputUserDestination of the phone call
random_idintRandom ID to avoid resending the same object
g_a_hashbytesParameter for E2E encryption key exchange »
protocolPhoneCallProtocolPhone call settings

returns

phone.PhoneCall

errors (11)

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_PROTOCOL_FLAGS_INVALIDCall protocol flags invalid.
400CALL_PROTOCOL_LAYER_INVALIDThe specified protocol layer version range is invalid.
400INPUT_USER_DEACTIVATEDThe specified user was deleted.
400PARTICIPANT_VERSION_OUTDATEDThe other participant does not use an up to date telegram client with support for calls.
400USER_ID_INVALIDThe provided user ID is invalid.
400USER_IS_BLOCKEDYou were blocked by this user.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).
403USER_IS_BLOCKEDYou were blocked by this user.
403USER_PRIVACY_RESTRICTEDThe user's privacy settings do not allow you to do this.
500RANDOM_ID_DUPLICATEYou provided a random ID that was already used.

history

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

idlayers
#a41aa5e462
#5b95b3d465–97
#42ff96ed98–195
#a6c4600c196–201
#42ff96ed202–229