Raw.DcOption

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 undefined

    Whether the specified ip is an ipv6 address

  • mediaOnly : boolean or undefined

    Whether this dc should only be used to download or upload files

  • tcpoOnly : boolean or undefined

    Whether this dc only supports connection with transport obfuscation

  • cdn : boolean or undefined

    Whether this is a cdn dc.

  • static : boolean or undefined

    If set, this ip should be used when connecting through a proxy

  • thisPortOnly : boolean or undefined

    If set, clients must connect using only the specified port, without trying any other port.

  • id : number

    Dc id

  • ipAddress : string

    Ip address of dc

  • port : number

    Port

  • secret : Buffer or undefined

    If the tcpoOnly flag is set, specifies the secret to use when connecting using transport obfuscation