ProxyKtx.ping - libtd-ktx

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


libtd-ktx / kotlinx.telegram.extensions / ProxyKtx / ping

ping

open suspend fun Proxy.ping(): Seconds

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

Return TdApi.Seconds Contains a value representing a number of seconds.