MadelineProtoDocs/docs/API_docs/constructors/help.country.md
2024-05-01 14:53:46 +02:00

1.4 KiB

title description nav_exclude image redirect_from
help.country Name, ISO code, localized name and phone codes/patterns of a specific country true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/help_country.html

Constructor: help.country

Back to constructors index

Name, ISO code, localized name and phone codes/patterns of a specific country

Attributes:

Name Type Required Description
hidden Bool Optional Whether this country should not be shown in the list
iso2 string Yes ISO code of country
default_name string Yes Name of the country in the country's language
name string Optional Name of the country in the user's language, if different from the original name
country_codes Array of help.CountryCode Yes Phone codes/patterns

Type: help.Country

Example:

$help_country = ['_' => 'help.country', 'hidden' => Bool, 'iso2' => 'string', 'default_name' => 'string', 'name' => 'string', 'country_codes' => [help.CountryCode, help.CountryCode]];