mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-13 19:07:19 +01:00
1004 B
1004 B
title | description |
---|---|
phoneConnection | phoneConnection attributes, type and example |
Constructor: phoneConnection
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'}