MadelineProtoDocs/old_docs/API_docs_v81/constructors/phoneCallProtocol.md
2019-12-27 17:48:04 +01:00

1.1 KiB

title description image
phoneCallProtocol Protocol info for libtgvoip https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: phoneCallProtocol

Back to constructors index

Protocol info for libtgvoip

Attributes:

Name Type Required Description
udp_p2p Bool Optional Whether to allow P2P connection to the other participant
udp_reflector Bool Optional Whether to allow connection to the other participants through the reflector servers
min_layer int Yes Minimum layer for remote libtgvoip
max_layer int Yes Maximum layer for remote libtgvoip

Type: PhoneCallProtocol

Example:

$phoneCallProtocol = ['_' => 'phoneCallProtocol', 'udp_p2p' => Bool, 'udp_reflector' => Bool, 'min_layer' => int, 'max_layer' => int];

Or, if you're into Lua:

phoneCallProtocol={_='phoneCallProtocol', udp_p2p=Bool, udp_reflector=Bool, min_layer=int, max_layer=int}