|
tgbotxx 1.2.9.5
Telegram Bot C++ Library
|
This object describes a unique gift that was upgraded from a regular gift. https://core.telegram.org/bots/api#uniquegift. More...
#include <UniqueGift.hpp>
Public Member Functions | |
| UniqueGift ()=default | |
| UniqueGift (const nl::json &json) | |
| nl::json | toJson () const |
| Serializes this object to JSON. | |
| void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
Public Attributes | |
| 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. | |
| Ptr< UniqueGiftModel > | model |
| Model of the gift. | |
| Ptr< UniqueGiftSymbol > | symbol |
| Symbol of the gift. | |
| Ptr< UniqueGiftBackdrop > | backdrop |
| Backdrop of the gift. | |
| bool | isPremium {} |
| Optional. True, if the original regular gift was exclusively purchaseable by Telegram Premium subscribers. | |
| bool | isBurned {} |
| Optional. True, if the gift was used to craft another gift and isn't available anymore. | |
| bool | isFromBlockchain {} |
| Optional. True, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram. | |
| 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. | |
| 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. https://core.telegram.org/bots/api#uniquegift.
Definition at line 12 of file UniqueGift.hpp.
|
default |
|
inlineexplicit |
Definition at line 14 of file UniqueGift.hpp.
Deserializes this object from JSON.
Definition at line 75 of file UniqueGift.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 57 of file UniqueGift.hpp.
| Ptr<UniqueGiftBackdrop> tgbotxx::UniqueGift::backdrop |
Backdrop of the gift.
Definition at line 37 of file UniqueGift.hpp.
| std::string tgbotxx::UniqueGift::baseName |
Human-readable name of the regular gift from which this unique gift was upgraded.
Definition at line 22 of file UniqueGift.hpp.
| Ptr<UniqueGiftColors> tgbotxx::UniqueGift::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 50 of file UniqueGift.hpp.
| std::string tgbotxx::UniqueGift::giftId |
Identifier of the regular gift from which the gift was upgraded.
Definition at line 19 of file UniqueGift.hpp.
| bool tgbotxx::UniqueGift::isBurned {} |
Optional. True, if the gift was used to craft another gift and isn't available anymore.
Definition at line 43 of file UniqueGift.hpp.
| bool tgbotxx::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 46 of file UniqueGift.hpp.
| bool tgbotxx::UniqueGift::isPremium {} |
Optional. True, if the original regular gift was exclusively purchaseable by Telegram Premium subscribers.
Definition at line 40 of file UniqueGift.hpp.
| Ptr<UniqueGiftModel> tgbotxx::UniqueGift::model |
Model of the gift.
Definition at line 31 of file UniqueGift.hpp.
| std::string tgbotxx::UniqueGift::name |
Unique name of the gift. This name can be used in https://t.me/nft/... links and story areas.
Definition at line 25 of file UniqueGift.hpp.
| std::int32_t tgbotxx::UniqueGift::number {} |
Unique number of the upgraded gift among gifts upgraded from the same regular gift.
Definition at line 28 of file UniqueGift.hpp.
Optional. Information about the chat that published the gift.
Definition at line 53 of file UniqueGift.hpp.
| Ptr<UniqueGiftSymbol> tgbotxx::UniqueGift::symbol |
Symbol of the gift.
Definition at line 34 of file UniqueGift.hpp.