Interface AddProxy

Adds a proxy server for network requests. Can be called before authorization. Request type for Tdjson#addProxy.

interface AddProxy {
    @type: "addProxy";
    enable?: boolean;
    port: number;
    server: string;
    type: ProxyType;
}

Properties

@type: "addProxy"
enable?: boolean

Pass true to immediately enable the proxy.

port: number

Proxy server port.

server: string

Proxy server domain or IP address.

type: ProxyType

Proxy type.