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: 223

  • ID: C3878E23

Parameters:
  • iso2 (str) – ISO code of country

  • default_name (str) – Name of the country in the country’s language

  • country_codes (List of help.CountryCode) – Phone codes/patterns

  • hidden (bool, optional) – Whether this country should not be shown in the list

  • name (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
├── hiddentrue (optional)
├── iso2string
├── default_namestring
├── namestring (optional)
└── country_codesVector < help.CountryCode >
├── country_codestring
├── prefixesVector < string > (optional)
└── patternsVector < string > (optional)

Example

Country(
    iso2="text",
    default_name="text",
    country_codes=[
            CountryCode(country_code="text")
        ],
)