Skip to content

testProxy

Function · TDLib 1.8.67 · d1085f9c

Sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization

testProxy(
  proxy: Proxy,
  dc_id: int32,
  timeout: double
) → Ok

proxy

Proxy

The proxy to test

dc_id

int32

Identifier of a datacenter with which to test connection

timeout

double

The maximum overall timeout for the request