dcOption

Data centre

dcOption#18b7a10d flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true static:flags.4?true id:int ip_address:string port:int secret:flags.10?bytes = DcOption;

Parameters

Name Type Description
flags # Flags, see TL conditional fields
ipv6 flags.0?true Whether the specified IP is an IPv6 address
media_only flags.1?true Whether this DC should only be used to download or upload files
tcpo_only flags.2?true Whether this DC only supports connection with transport obfuscation
cdn flags.3?true Whether this is a CDN DC.
static flags.4?true If set, this IP should be used when connecting through a proxy
id int DC ID
ip_address string IP address of DC
port int Port
secret flags.10?bytes If the tcpo_only flag is set, specifies the secret to use when connecting using transport obfuscation

Type

DcOption

Related pages

Uploading and Downloading Files

How to transfer large data batches correctly.

MTProto transports

Encrypted CDNs for Speed and Security