Package org.drinkless.tdlib
Class TdApi.GetPreferredCountryLanguage
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.GetPreferredCountryLanguage
-
- Enclosing class:
- TdApi
public static class TdApi.GetPreferredCountryLanguage extends TdApi.Function
Returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown.Returns
Text
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.StringcountryCodeA two-letter ISO 3166-1 alpha-2 country code.
-
Constructor Summary
Constructors Constructor Description GetPreferredCountryLanguage()Default constructor for a function, which returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in Telegram Passport personal details.GetPreferredCountryLanguage(String countryCode)Creates a function, which returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in Telegram Passport personal details.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
countryCode
public String countryCode
A two-letter ISO 3166-1 alpha-2 country code.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GetPreferredCountryLanguage
public GetPreferredCountryLanguage()
Default constructor for a function, which returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown.Returns
Text
-
GetPreferredCountryLanguage
public GetPreferredCountryLanguage(String countryCode)
Creates a function, which returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown.Returns
Text- Parameters:
countryCode- A two-letter ISO 3166-1 alpha-2 country code.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-