|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Describes a service message about a unique gift that was sent or received. https://core.telegram.org/bots/api#uniquegiftinfo. More...
#include <UniqueGiftInfo.hpp>
Public Member Functions | |
| UniqueGiftInfo ()=default | |
| UniqueGiftInfo (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 | |
| Ptr< UniqueGift > | gift |
| Information about the gift. | |
| std::string | origin |
| Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts, “transfer” for gifts transferred from other users or channels, or “resale” for gifts bought from other users. | |
| std::int64_t | lastResaleStarCount {} |
| Optional. For gifts bought from other users, the price paid for the gift. | |
| std::string | ownedGiftId |
| Optional. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts. | |
| std::int64_t | transferStarCount {} |
| Optional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift. | |
| std::time_t | nextTransferDate {} |
| Optional. Point in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now. | |
Describes a service message about a unique gift that was sent or received. https://core.telegram.org/bots/api#uniquegiftinfo.
Definition at line 8 of file UniqueGiftInfo.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file UniqueGiftInfo.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 53 of file UniqueGiftInfo.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 41 of file UniqueGiftInfo.hpp.
| Ptr<UniqueGift> tgbotxx::UniqueGiftInfo::gift |
Information about the gift.
Definition at line 15 of file UniqueGiftInfo.hpp.
| std::int64_t tgbotxx::UniqueGiftInfo::lastResaleStarCount {} |
Optional. For gifts bought from other users, the price paid for the gift.
Definition at line 25 of file UniqueGiftInfo.hpp.
| std::time_t tgbotxx::UniqueGiftInfo::nextTransferDate {} |
Optional. Point in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now.
Definition at line 37 of file UniqueGiftInfo.hpp.
| std::string tgbotxx::UniqueGiftInfo::origin |
Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts, “transfer” for gifts transferred from other users or channels, or “resale” for gifts bought from other users.
Definition at line 22 of file UniqueGiftInfo.hpp.
| std::string tgbotxx::UniqueGiftInfo::ownedGiftId |
Optional. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts.
Definition at line 29 of file UniqueGiftInfo.hpp.
| std::int64_t tgbotxx::UniqueGiftInfo::transferStarCount {} |
Optional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift.
Definition at line 33 of file UniqueGiftInfo.hpp.