Class TdApi.GetCountryFlagEmoji
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Text>
dev.voroby.springframework.telegram.client.TdApi.GetCountryFlagEmoji
- Enclosing class:
- TdApi
Returns an emoji for the given country. Returns an empty string on failure. Can be called synchronously.
Returns Text
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.A two-letter ISO 3166-1 alpha-2 country code as received from getCountries. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which returns an emoji for the given country.GetCountryFlagEmoji
(String countryCode) Creates a function, which returns an emoji for the given country. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
countryCode
A two-letter ISO 3166-1 alpha-2 country code as received from getCountries. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetCountryFlagEmoji
public GetCountryFlagEmoji()Default constructor for a function, which returns an emoji for the given country. Returns an empty string on failure. Can be called synchronously.Returns
Text
-
GetCountryFlagEmoji
Creates a function, which returns an emoji for the given country. Returns an empty string on failure. Can be called synchronously.Returns
Text
- Parameters:
countryCode
- A two-letter ISO 3166-1 alpha-2 country code as received from getCountries.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-