This object describes a unique gift that was upgraded from a regular gift.
More...
#include <Types.h>
|
| std::string | giftId { } |
| | Identifier of the regular gift from which the gift was upgraded.
|
| std::string | baseName { } |
| | Human-readable name of the regular gift from which this unique gift was upgraded.
|
| std::string | name { } |
| | Unique name of the gift. This name can be used in https://t.me/nft/... links and story areas.
|
| std::int32_t | number { } |
| | Unique number of the upgraded gift among gifts upgraded from the same regular gift.
|
| std::shared_ptr< UniqueGiftModel > | model { } |
| | Model of the gift.
|
| std::shared_ptr< UniqueGiftSymbol > | symbol { } |
| | Symbol of the gift.
|
| std::shared_ptr< UniqueGiftBackdrop > | backdrop { } |
| | Backdrop of the gift.
|
| std::optional< bool > | isPremium { } |
| | Optional. True, if the original regular gift was exclusively purchaseable by Telegram Premium subscribers.
|
| std::optional< bool > | isBurned { } |
| | Optional. True, if the gift was used to craft another gift and isn't available anymore.
|
| std::optional< bool > | isFromBlockchain { } |
| | Optional. True, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram.
|
| std::shared_ptr< UniqueGiftColors > | colors { } |
| | Optional. 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.
|
| std::shared_ptr< Chat > | publisherChat { } |
| | Optional. Information about the chat that published the gift.
|
This object describes a unique gift that was upgraded from a regular gift.
Definition at line 14322 of file Types.h.
◆ Ptr
◆ backdrop
Backdrop of the gift.
Definition at line 14359 of file Types.h.
◆ baseName
| std::string TgBot::UniqueGift::baseName { } |
Human-readable name of the regular gift from which this unique gift was upgraded.
Definition at line 14333 of file Types.h.
◆ colors
Optional. 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.
Definition at line 14383 of file Types.h.
◆ giftId
| std::string TgBot::UniqueGift::giftId { } |
Identifier of the regular gift from which the gift was upgraded.
Definition at line 14328 of file Types.h.
◆ isBurned
| std::optional<bool> TgBot::UniqueGift::isBurned { } |
Optional. True, if the gift was used to craft another gift and isn't available anymore.
Definition at line 14370 of file Types.h.
◆ isFromBlockchain
| std::optional<bool> TgBot::UniqueGift::isFromBlockchain { } |
Optional. True, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram.
Definition at line 14376 of file Types.h.
◆ isPremium
| std::optional<bool> TgBot::UniqueGift::isPremium { } |
Optional. True, if the original regular gift was exclusively purchaseable by Telegram Premium subscribers.
Definition at line 14365 of file Types.h.
◆ model
Model of the gift.
Definition at line 14349 of file Types.h.
◆ name
| std::string TgBot::UniqueGift::name { } |
◆ number
| std::int32_t TgBot::UniqueGift::number { } |
Unique number of the upgraded gift among gifts upgraded from the same regular gift.
Definition at line 14344 of file Types.h.
◆ publisherChat
| std::shared_ptr<Chat> TgBot::UniqueGift::publisherChat { } |
Optional. Information about the chat that published the gift.
Definition at line 14388 of file Types.h.
◆ symbol
Symbol of the gift.
Definition at line 14354 of file Types.h.
The documentation for this struct was generated from the following file: