Skip to content
Back to top
View this page

# UniqueGiftSymbol

class telegram.UniqueGiftSymbol(name, sticker, rarity_per_mille, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  This object describes the symbol shown on the pattern of a unique gift.

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal if their `name`, `sticker` and `rarity_per_mille` are equal.

  Available In

  `telegram.UniqueGift.symbol`

  Added in version 22.1.

  Parameters:

    - name (`str`) – Name of the symbol.

    - sticker (`telegram.Sticker`) – The sticker that represents the unique gift.

    - rarity_per_mille (`int`) – The number of unique gifts that receive this model for every `1000` gifts upgraded.

  name

    Name of the symbol.

    Type:

      `str`

  sticker

    The sticker that represents the unique gift.

    Type:

      `telegram.Sticker`

  rarity_per_mille

    The number of unique gifts that receive this model for every `1000` gifts upgraded.

    Type:

      `int`

  classmethod de_json(data, bot=None)

    See `telegram.TelegramObject.de_json()`.