Class TdApi.GetCountryFlagEmoji

Enclosing class:
TdApi

public static class TdApi.GetCountryFlagEmoji extends TdApi.Function<TdApi.Text>
Returns an emoji for the given country. Returns an empty string on failure. Can be called synchronously.

Returns Text

  • Field Details

    • countryCode

      public String countryCode
      A two-letter ISO 3166-1 alpha-2 country code as received from getCountries.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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

      public GetCountryFlagEmoji(String countryCode)
      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