Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>DcOption_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class DcOption_
extends _DcOption_
import { DcOption_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Data center

Constructors

new
DcOption_(params: { ipv6?: true; media_only?: true; tcpo_only?: true; cdn?: true; static?: true; this_port_only?: true; id: number; ip_address: string; port: number; secret?: Uint8Array; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
cdn: true

Whether this is a CDN DC.

id: number

DC ID

ip_address: string

IP address of DC

optional
ipv6: true

Whether the specified IP is an IPv6 address

optional
media_only: true

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

port: number

Port

optional
secret: Uint8Array

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

optional
static: true

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

optional
tcpo_only: true

Whether this DC only supports connection with transport obfuscation

optional
this_port_only: true

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

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc