telegram api constructor · layer 229 · #18b7a10d

dcOption

Data center

definition

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 this_port_only:flags.5?true id:int ip_address:string port:int secret:flags.10?bytes = DcOption;

parameters

nametypedescription
flags#Flags, see TL conditional fields
ipv6flags.0?trueWhether the specified IP is an IPv6 address
media_onlyflags.1?trueWhether this DC should only be used to download or upload files
tcpo_onlyflags.2?trueWhether this DC only supports connection with transport obfuscation
cdnflags.3?trueWhether this is a CDN DC.
staticflags.4?trueIf set, this IP should be used when connecting through a proxy
this_port_onlyflags.5?trueIf set, clients must connect using only the specified port, without trying any other port.
idintDC ID
ip_addressstringIP address of DC
portintPort
secretflags.10?bytesIf the tcpo_only flag is set, specifies the secret to use when connecting using transport obfuscation

type

DcOption

history

present in layers 2–229 · constructor id changed 2×

idlayers
#2ec2a43c2–23
#05d8c6cc46–77
#18b7a10d78–229