Interface ProxyTypeWeb

A web proxy server. MTProto traffic goes through an HTTPS relay page hosted by the application in a hidden web view; see updateWebProxyCarrierOpened. The proxy server must be a domain name and the port must be 443. Subtype of ProxyType.

interface ProxyTypeWeb {
    @type: "proxyTypeWeb";
    path: string;
    secret: string;
}

Properties

Properties

@type: "proxyTypeWeb"
path: string

Base path of the relay on the server, without leading and trailing slashes; may be empty. Consists of 0-128 characters; each "/"-separated segment must match [A-Za-z0-9][A-Za-z0-9_-]*.

secret: string

The MTProto proxy secret in hexadecimal encoding; must be 16 bytes long, optionally prefixed with the byte 0xdd.