|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Describes a service message about a regular gift that was sent or received. https://core.telegram.org/bots/api#giftinfo. More...
#include <GiftInfo.hpp>
Public Member Functions | |
| GiftInfo ()=default | |
| GiftInfo (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< Gift > | gift |
| Information about 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 | convertStarCount {} |
| Optional. Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitted if conversion to Telegram Stars is impossible. | |
| std::int64_t | prepaidUpgradeStarCount {} |
| Optional. Number of Telegram Stars that were prepaid by the sender for the ability to upgrade the gift. | |
| bool | canBeUpgraded {} |
| Optional. True, if the gift can be upgraded to a unique gift. | |
| std::string | text |
| Optional. Text of the message that was added to the gift. | |
| std::vector< Ptr< MessageEntity > > | entities |
| Optional. Special entities that appear in the text. | |
| bool | isPrivate {} |
| Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them. | |
Describes a service message about a regular gift that was sent or received. https://core.telegram.org/bots/api#giftinfo.
Definition at line 9 of file GiftInfo.hpp.
|
default |
|
inlineexplicit |
Definition at line 11 of file GiftInfo.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 56 of file GiftInfo.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 42 of file GiftInfo.hpp.
| bool tgbotxx::GiftInfo::canBeUpgraded {} |
Optional. True, if the gift can be upgraded to a unique gift.
Definition at line 29 of file GiftInfo.hpp.
| std::int64_t tgbotxx::GiftInfo::convertStarCount {} |
Optional. Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitted if conversion to Telegram Stars is impossible.
Definition at line 23 of file GiftInfo.hpp.
| std::vector<Ptr<MessageEntity> > tgbotxx::GiftInfo::entities |
Optional. Special entities that appear in the text.
Definition at line 35 of file GiftInfo.hpp.
Information about the gift.
Definition at line 16 of file GiftInfo.hpp.
| bool tgbotxx::GiftInfo::isPrivate {} |
Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them.
Definition at line 38 of file GiftInfo.hpp.
| std::string tgbotxx::GiftInfo::ownedGiftId |
Optional. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts.
Definition at line 19 of file GiftInfo.hpp.
| std::int64_t tgbotxx::GiftInfo::prepaidUpgradeStarCount {} |
Optional. Number of Telegram Stars that were prepaid by the sender for the ability to upgrade the gift.
Definition at line 26 of file GiftInfo.hpp.
| std::string tgbotxx::GiftInfo::text |
Optional. Text of the message that was added to the gift.
Definition at line 32 of file GiftInfo.hpp.