Class TdApi.GetCountryCode

Enclosing class:
TdApi

public static class TdApi.GetCountryCode extends TdApi.Function<TdApi.Text>
Uses the current IP address to find the current country. Returns two-letter ISO 3166-1 alpha-2 country code. Can be called before authorization.

Returns Text

  • Field Details

    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • GetCountryCode

      public GetCountryCode()
      Default constructor for a function, which uses the current IP address to find the current country. Returns two-letter ISO 3166-1 alpha-2 country code. Can be called before authorization.

      Returns Text

  • Method Details