class pyrogram.raw.types.LangPackLanguage#

Identifies a localization pack.

Constructor of LangPackLanguage.

  • Layer: 158

  • ID: EECA5CE3

  • name (str) – Language name.

  • native_name (str) – Language name in the language itself.

  • lang_code (str) – Language code (pack identifier).

  • plural_code (str) – A language code to be used to apply plural forms. See for more info.

  • strings_count (int 32-bit) – Total number of non-deleted strings from the language pack.

  • translated_count (int 32-bit) – Total number of translated strings from the language pack.

  • translations_url (str) – Link to language translation interface; empty for custom local language packs.

  • official (bool, optional) – Whether the language pack is official.

  • rtl (bool, optional) – Is this a localization pack for an RTL language.

  • beta (bool, optional) – Is this a beta localization pack?.

  • base_lang_code (str, optional) – Identifier of a base language pack; may be empty. If a string is missed in the language pack, then it should be fetched from base language pack. Unsupported in custom language packs.


This object can be returned by 2 functions.


Get information about all languages in a localization pack.


Get information about a language in a localization pack.