pingProxy - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / pingProxy

pingProxy

suspend fun TelegramFlow.pingProxy(proxyId: Int): Seconds

Suspend function, which computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization.

Parameters

proxyId - Proxy identifier. Use 0 to ping a Telegram server without a proxy.

Return Seconds Contains a value representing a number of seconds.