Interface AddProxy

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

interface AddProxy {
    @type: "addProxy";
    comment: string;
    enable?: boolean;
    proxy: Proxy;
}

Properties

@type: "addProxy"
comment: string

Comment to set for the proxy.

enable?: boolean

Pass true to immediately enable the proxy.

proxy: Proxy

The proxy to add.