LangPackStringPluralized

class pyrogram.raw.types.LangPackStringPluralized

A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info

Constructor of LangPackString.

Details:
  • Layer: 223

  • ID: 6C47AC9F

Parameters:
  • key (str) – Localization key

  • other_value (str) – Default value

  • zero_value (str, optional) – Value for zero objects

  • one_value (str, optional) – Value for one object

  • two_value (str, optional) – Value for two objects

  • few_value (str, optional) – Value for a few objects

  • many_value (str, optional) – Value for many objects

Functions:

This object can be returned by 1 function.

langpack.GetStrings

Get strings from a language pack

TL Schema

langPackStringPluralized#6c47ac9f
flags:#
key:string
zero_value:flags.0?string
one_value:flags.1?string
two_value:flags.2?string
few_value:flags.3?string
many_value:flags.4?string
other_value:string

= LangPackString

Parameter Tree

LangPackStringPluralized
├── keystring
├── zero_valuestring (optional)
├── one_valuestring (optional)
├── two_valuestring (optional)
├── few_valuestring (optional)
├── many_valuestring (optional)
└── other_valuestring

Example

LangPackStringPluralized(
    key="text",
    other_value="text",
)