help.CountryCode

class pyrogram.raw.types.help.CountryCode

Country code and phone number pattern of a specific country

Constructor of CountryCode.

Details:
  • Layer: 223

  • ID: 4203C5EF

Parameters:
  • country_code (str) – ISO country code

  • prefixes (List of str, optional) – Possible phone prefixes

  • patterns (List of str, optional) – Phone patterns: for example, XXX XXX XXX

TL Schema

help.countryCode#4203c5ef
flags:#
country_code:string
prefixes:flags.0?Vector<string>
patterns:flags.1?Vector<string>

= help.CountryCode

Parameter Tree

CountryCode
├── country_codestring
├── prefixesVector < string > (optional)
└── patternsVector < string > (optional)

Example

CountryCode(
    country_code="text",
)