MTProto proxy settings

interface MtProxySettings {
    host: string;
    port: number;
    secret: string | Uint8Array;
}

Properties

Properties

host: string

Host or IP of the proxy (e.g. proxy.example.com, 1.2.3.4)

port: number

Port of the proxy (e.g. 8888)

secret: string | Uint8Array

Secret of the proxy, optionally encoded either as hex or base64