libtd-ktx / kotlinx.telegram.coroutines / getPreferredCountryLanguage
getPreferredCountryLanguage
suspend fun
TelegramFlow
.getPreferredCountryLanguage(countryCode:
String
?):
Text
Suspend function, which returns an IETF language tag of the language preferred in the country, which should be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown.
Parameters
countryCode
- A two-letter ISO 3166-1 alpha-2 country code.
Return Text Contains some text.