MadelineProtoDocs/old_docs/API_docs_v20/constructors/phoneConnection.md
2020-06-16 17:50:25 +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'}