View Source ExTDLib.Method.GetCountryCode (ExTDLib v0.0.4)
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 object_ptr<Text>.
More details on telegram's documentation.