-
Notifications
You must be signed in to change notification settings - Fork 11
get preferred country language
Alexey Kravtsov edited this page May 19, 2020
·
1 revision
libtd-ktx / kotlinx.telegram.coroutines / 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.
countryCode
- A two-letter ISO 3166-1 alpha-2 country code.
Return Text Contains some text.