MadelineProtoDocs/old_docs/API_docs_v18/constructors/dcOption.md
2019-12-27 17:48:04 +01:00

840 B

title description image
dcOption Data centre https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: dcOption

Back to constructors index

Data centre

Attributes:

Name Type Required Description
id int Yes DC ID
hostname string Yes Hostname
ip_address string Yes IP address of DC
port int Yes Port

Type: DcOption

Example:

$dcOption = ['_' => 'dcOption', 'id' => int, 'hostname' => 'string', 'ip_address' => 'string', 'port' => int];

Or, if you're into Lua:

dcOption={_='dcOption', id=int, hostname='string', ip_address='string', port=int}