phoneCallProtocol #

Protocol info for the VoIP library, see here » for details on how to populate it.

Layer 223

phoneCallProtocol#fc878fc8 flags:# udp_p2p:flags.0?true udp_reflector:flags.1?true min_layer:int max_layer:int library_versions:Vector<string> = PhoneCallProtocol;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
udp_p2pflags.0?trueWhether to allow P2P connection to the other participant
udp_reflectorflags.1?trueWhether to allow connection to the other participants through the reflector servers
min_layerintMinimum layer for remote libtgvoip
max_layerintMaximum layer for remote libtgvoip
library_versionsVector<string>When using phone.requestCall and phone.acceptCall, specify all library versions supported by the client.
The server will merge and choose the best library version supported by both peers, returning only the best value in the result of the callee's phone.acceptCall and in the phoneCallAccepted update received by the caller.

Type #

PhoneCallProtocol

phone.requestCall #

Start a telegram phone call, see here » for more info on the full flow.

phone.acceptCall #

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

phoneCallAccepted #

An accepted phone call, see here » for more info on the full flow.

Phone calls #

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