api.testProxy()
Sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization
Parameters
TestProxyParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
server | string | Proxy server IP address |
port | number | Proxy server port |
type | Proxy type | |
dcId | number | Identifier of a datacenter, with which to test connection |
timeout | number | The maximum overall timeout for the request |