getCountryCode - libtd-ktx

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


libtd-ktx / kotlinx.telegram.coroutines / getCountryCode

getCountryCode

suspend fun TelegramFlow.getCountryCode(): Text

Suspend function, which uses current user IP to found their country. Returns two-letter ISO 3166-1 alpha-2 country code. Can be called before authorization.

Return Text Contains some text.