help.Country
- class pyrogram.raw.types.help.Country
Name, ISO code, localized name and phone codes/patterns of a specific country
Constructor of
Country.- Details:
Layer:
223ID:
C3878E23
- Parameters:
iso2 (
str) – ISO code of countrydefault_name (
str) – Name of the country in the country’s languagecountry_codes (List of
help.CountryCode) – Phone codes/patternshidden (
bool, optional) – Whether this country should not be shown in the listname (
str, optional) – Name of the country in the user’s language, if different from the original name
TL Schema
help.country#c3878e23
flags:#
hidden:flags.0?true
iso2:string
default_name:string
name:flags.1?string
country_codes:Vector<help.CountryCode>
= help.Country
Parameter Tree
Country
├── hidden →
true (optional)├── iso2 →
string├── default_name →
string├── name →
string (optional)└── country_codes →
Vector < help.CountryCode >└──
help.CountryCode├── country_code →
string├── prefixes →
Vector < string > (optional)└── patterns →
Vector < string > (optional)Example
Country(
iso2="text",
default_name="text",
country_codes=[
CountryCode(country_code="text")
],
)