Class TdApi.GetCountryCode

Enclosing class:
TdApi

public static class TdApi.GetCountryCode
extends TdApi.Function
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 Details

    • GetCountryCode

      public GetCountryCode()
      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

    • GetCountryCode

      public GetCountryCode​(DataInput input) throws IOException
      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

      Throws:
      IOException
  • Method Details