phone.requestCall #

Start a telegram phone 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.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. See here » for more info on random ID deduplication and updateMessageID mapping.
g_a_hashbytesParameter for E2E encryption key exchange »
protocolPhoneCallProtocolPhone call settings

Result #

phone.PhoneCall

Only users can use this method #

Possible errors #

CodeTypeDescription
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.
500RANDOM_ID_DUPLICATEYou provided a random ID that was already used.
400USER_ID_INVALIDThe provided user ID is invalid.
403USER_IS_BLOCKEDYou were blocked by this user.
403USER_PRIVACY_RESTRICTEDThe user's privacy settings do not allow you to do this.

Working with Updates #

How to subscribe to updates and handle them properly.

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.