|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
This object describes the types of gifts that can be gifted to a user or a chat. https://core.telegram.org/bots/api#acceptedgifttypes. More...
#include <AcceptedGiftTypes.hpp>
Public Member Functions | |
| AcceptedGiftTypes ()=default | |
| AcceptedGiftTypes (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 | |
| bool | unlimitedGifts {} |
| True, if unlimited regular gifts are accepted. | |
| bool | limitedGifts {} |
| True, if limited regular gifts are accepted. | |
| bool | uniqueGifts {} |
| True, if unique gifts or gifts that can be upgraded to unique for free are accepted. | |
| bool | premiumSubscription {} |
| True, if a Telegram Premium subscription is accepted. | |
This object describes the types of gifts that can be gifted to a user or a chat. https://core.telegram.org/bots/api#acceptedgifttypes.
Definition at line 8 of file AcceptedGiftTypes.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file AcceptedGiftTypes.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 38 of file AcceptedGiftTypes.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 28 of file AcceptedGiftTypes.hpp.
| bool tgbotxx::AcceptedGiftTypes::limitedGifts {} |
True, if limited regular gifts are accepted.
Definition at line 18 of file AcceptedGiftTypes.hpp.
| bool tgbotxx::AcceptedGiftTypes::premiumSubscription {} |
True, if a Telegram Premium subscription is accepted.
Definition at line 24 of file AcceptedGiftTypes.hpp.
| bool tgbotxx::AcceptedGiftTypes::uniqueGifts {} |
True, if unique gifts or gifts that can be upgraded to unique for free are accepted.
Definition at line 21 of file AcceptedGiftTypes.hpp.
| bool tgbotxx::AcceptedGiftTypes::unlimitedGifts {} |
True, if unlimited regular gifts are accepted.
Definition at line 15 of file AcceptedGiftTypes.hpp.