View Source ExTDLib.Method.GetPhoneNumberInfoSync (ExTDLib v0.0.4)

Returns information about a phone number by its prefix synchronously. getCountries must be called at least once after changing localization to the specified language if properly localized country information is expected. Can be called synchronously. Returns object_ptr<PhoneNumberInfo>.

NameTypeDescription
language_codestringA two-letter ISO 639-1 language code for country information localization.
phone_number_prefixstringThe phone number prefix.

More details on telegram's documentation.