MadelineProtoDocs/old_docs/API_docs_v43/constructors/phoneConnection.md
2020-09-12 12:47:38 +02:00

1.1 KiB

title description image
phoneConnection Identifies an endpoint that can be used to connect to the other user in a phone call https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: phoneConnection

Back to constructors index

Identifies an endpoint that can be used to connect to the other user in a phone call

Attributes:

Name Type Required Description
id long Yes Endpoint ID
ip string Yes IP address of endpoint
ipv6 string Yes IPv6 address of endpoint
port int Yes Port ID
peer_tag bytes Yes Our peer tag

Type: PhoneConnection

Example:

$phoneConnection = ['_' => 'phoneConnection', 'id' => long, 'ip' => 'string', 'ipv6' => 'string', 'port' => int, 'peer_tag' => 'bytes'];

Or, if you're into Lua:

phoneConnection={_='phoneConnection', id=long, ip='string', ipv6='string', port=int, peer_tag='bytes'}