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

923 B

title description image
ipPortSecret Ip port secret https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: ipPortSecret

Back to constructors index

Ip port secret

Attributes:

Name Type Required Description
ipv4 int Yes Ipv4
port int Yes Port
secret bytes Yes Secret

Type: IpPort

Example:

$ipPortSecret = ['_' => 'ipPortSecret', 'ipv4' => int, 'port' => int, 'secret' => 'bytes'];

PWRTelegram json-encoded version:

{"_": "ipPortSecret", "ipv4": int, "port": int, "secret": {"_": "bytes", "bytes":"base64 encoded bytes"}}

Or, if you're into Lua:

ipPortSecret={_='ipPortSecret', ipv4=int, port=int, secret='bytes'}