help.CountriesList

class pyrogram.raw.types.help.CountriesList

Name, ISO code, localized name and phone codes/patterns of all available countries

Constructor of CountriesList.

Details:
  • Layer: 223

  • ID: 87D0759E

Parameters:
  • countries (List of help.Country) – Name, ISO code, localized name and phone codes/patterns of all available countries

  • hash (int 32-bit) – Hash used for caching, for more info click here

Functions:

This object can be returned by 1 function.

help.GetCountriesList

Get name, ISO code, localized name and phone codes/patterns of all available countries

TL Schema

help.countriesList#87d0759e
countries:Vector<help.Country>
hash:int

= help.CountriesList

Parameter Tree

CountriesList
├── countriesVector < help.Country >
│ └── help.Country
│ ├── hiddentrue (optional)
│ ├── iso2string
│ ├── default_namestring
│ ├── namestring (optional)
│ └── country_codesVector < help.CountryCode >
│ └── help.CountryCode
│ ├── country_codestring
│ ├── prefixesVector < string > (optional)
│ └── patternsVector < string > (optional)
└── hashint

Example

CountriesList(
    countries=[
            Country(
                iso2="text",
                default_name="text",
                country_codes=[
                        CountryCode(country_code="text")
                    ]
            )
        ],
    hash=0,
)