libtd-ktx / kotlinx.telegram.coroutines / testProxy
testProxy
suspend fun TelegramFlow.testProxy(server: String?, port: Int, type: ProxyType?, dcId: Int, timeout: Double): Unit
Suspend function, which sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization.
Parameters
server - Proxy server IP address.
port - Proxy server port.
type - Proxy type.
dcId - Identifier of a datacenter, with which to test connection.
timeout - The maximum overall timeout for the request.