View Source ExTDLib.Method.AddProxy (ExTDLib v0.0.4)
Adds a proxy server for network requests. Can be called before authorization. Returns object_ptr<Proxy>.
| Name | Type | Description |
|---|---|---|
| server | string | Proxy server domain or IP address. |
| port | number | Proxy server port. |
| enable | bool | Pass true to immediately enable the proxy. |
| type | ProxyType | Proxy type. |
More details on telegram's documentation.