MadelineProtoDocs/old_docs/API_docs_v91/constructors/phoneConnection.md

947 B

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'];

Or, if you're into Lua:

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