MadelineProtoDocs/old_docs/API_docs_v72/constructors/phoneConnection.md
2018-04-04 19:52:48 +02:00

1.1 KiB

title description image
phoneConnection phoneConnection attributes, type and example https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: phoneConnection

Back to constructors index

Attributes:

Name Type Required
id long Yes
ip string Yes
ipv6 string Yes
port int Yes
peer_tag bytes Yes

Type: PhoneConnection

Example:

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

PWRTelegram json-encoded version:

{"_": "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'}