Skip to content

getPhoneNumberInfoSync

Function · TDLib 1.8.67 · d1085f9c

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

getPhoneNumberInfoSync(
  language_code: string,
  phone_number_prefix: string
) → PhoneNumberInfo

language_code

string

A two-letter ISO 639-1 language code for country information localization

phone_number_prefix

string

The phone number prefix