peyk.platforms.telegram.types.unique_gift¶
Classes
|
This object describes a unique gift that was upgraded from a regular gift. |
- class peyk.platforms.telegram.types.unique_gift.UniqueGift(gift_id: str, base_name: str, name: str, number: int, model: UniqueGiftModel, symbol: UniqueGiftSymbol, backdrop: UniqueGiftBackdrop, is_premium: bool | None = None, is_burned: bool | None = None, is_from_blockchain: bool | None = None, colors: UniqueGiftColors | None = None, publisher_chat: Chat | None = None)[source]¶
Bases:
objectThis object describes a unique gift that was upgraded from a regular gift.
- Variables:
gift_id (str) – Identifier of the regular gift from which the gift was upgraded
base_name (str) – Human-readable name of the regular gift from which this unique gift was upgraded
name (str) – Unique name of the gift. This name can be used in https://t.me/nft/… links and story areas.
number (int) – Unique number of the upgraded gift among gifts upgraded from the same regular gift
model (peyk.platforms.telegram.types.unique_gift_model.UniqueGiftModel) – Model of the gift
symbol (peyk.platforms.telegram.types.unique_gift_symbol.UniqueGiftSymbol) – Symbol of the gift
backdrop (peyk.platforms.telegram.types.unique_gift_backdrop.UniqueGiftBackdrop) – Backdrop of the gift
is_premium (bool | None) – True, if the original regular gift was exclusively purchaseable by Telegram Premium subscribers
is_burned (bool | None) – True, if the gift was used to craft another gift and isn’t available anymore
is_from_blockchain (bool | None) – True, if the gift is assigned from the TON blockchain and can’t be resold or transferred in Telegram
colors (peyk.platforms.telegram.types.unique_gift_colors.UniqueGiftColors | None) – The color scheme that can be used by the gift’s owner for the chat’s name, replies to messages and link previews; for business account gifts and gifts that are currently on sale only
publisher_chat (peyk.platforms.telegram.types.chat.Chat | None) – Information about the chat that published the gift
- gift_id: str¶
- base_name: str¶
- name: str¶
- number: int¶
- model: UniqueGiftModel¶
- symbol: UniqueGiftSymbol¶
- backdrop: UniqueGiftBackdrop¶
- is_burned: bool | None = None¶
- is_from_blockchain: bool | None = None¶
- colors: UniqueGiftColors | None = None¶
- classmethod from_dict(data)¶
- id = None¶
- title = None¶