MadelineProtoDocs/old_docs/API_docs_v72/constructors/phoneConnection.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.1 KiB

title description image
phoneConnection Phone connection https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: phoneConnection

Back to constructors index

Phone connection

Attributes:

Name Type Required Description
id long Yes ID
ip string Yes Ip
ipv6 string Yes Ipv6
port int Yes Port
peer_tag bytes Yes Peer tag

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", "bytes":"base64 encoded bytes"}}

Or, if you're into Lua:

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