Raw.DcOption
Data center
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;
export namespace Raw {
export class DcOption {
constructor(params: {
ipv6?: boolean;
mediaOnly?: boolean;
tcpoOnly?: boolean;
cdn?: boolean;
static?: boolean;
thisPortOnly?: boolean;
id: number;
ipAddress: string;
port: number;
secret?: Buffer;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x18b7a10d
Property
ipv6
: boolean or undefinedWhether the specified ip is an ipv6 address
mediaOnly
: boolean or undefinedWhether this dc should only be used to download or upload files
tcpoOnly
: boolean or undefinedWhether this dc only supports connection with transport obfuscation
cdn
: boolean or undefinedWhether this is a cdn dc.
static
: boolean or undefinedIf set, this ip should be used when connecting through a proxy
thisPortOnly
: boolean or undefinedIf set, clients must connect using only the specified port, without trying any other port.
id
: numberDc id
ipAddress
: stringIp address of dc
port
: numberPort
secret
: Buffer or undefinedIf the tcpoOnly flag is set, specifies the secret to use when connecting using transport obfuscation