View Source ExTDLib.Method.TestProxy (ExTDLib v0.0.4)
Sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization. Returns object_ptr<Ok>.
| Name | Type | Description |
|---|---|---|
| server | string | Proxy server domain or IP address. |
| port | number | Proxy server port. |
| type | ProxyType | Proxy type. |
| dc_id | number | Identifier of a datacenter with which to test connection. |
| timeout | double | The maximum overall timeout for the request. |
More details on telegram's documentation.