Interface GetPhoneNumberInfoSync

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. Request type for Tdjson#getPhoneNumberInfoSync.

interface GetPhoneNumberInfoSync {
    @type: "getPhoneNumberInfoSync";
    language_code: string;
    phone_number_prefix: string;
}

Properties

@type: "getPhoneNumberInfoSync"
language_code: string

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

phone_number_prefix: string

The phone number prefix.