|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
The boost was obtained by the creation of a Telegram Premium giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription. https://core.telegram.org/bots/api#chatboostsourcegiveaway. More...
#include <ChatBoostSource.hpp>
Public Member Functions | |
| ChatBoostSourceGiveaway () | |
| ChatBoostSourceGiveaway (const nl::json &json) | |
| nl::json | toJson () const override |
| Serializes this object to JSON. | |
| void | fromJson (const nl::json &json) override |
| Deserializes this object from JSON. | |
Public Member Functions inherited from tgbotxx::ChatBoostSource | |
| ChatBoostSource ()=default | |
| ChatBoostSource (const nl::json &json) | |
| virtual | ~ChatBoostSource ()=default |
Public Attributes | |
| std::int32_t | giveawayMessageId {} |
| Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn't sent yet. | |
| Ptr< User > | user |
| Optional. User that won the prize in the giveaway if any. | |
| bool | isUnclaimed {} |
| Optional. True, if the giveaway was completed, but there was no user to win the prize. | |
Public Attributes inherited from tgbotxx::ChatBoostSource | |
| std::string | source |
| Source of the boost. | |
The boost was obtained by the creation of a Telegram Premium giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription. https://core.telegram.org/bots/api#chatboostsourcegiveaway.
Definition at line 94 of file ChatBoostSource.hpp.
|
inline |
Definition at line 95 of file ChatBoostSource.hpp.
|
inlineexplicit |
Definition at line 98 of file ChatBoostSource.hpp.
|
inlineoverridevirtual |
Deserializes this object from JSON.
Reimplemented from tgbotxx::ChatBoostSource.
Definition at line 120 of file ChatBoostSource.hpp.
|
inlineoverridevirtual |
Serializes this object to JSON.
Reimplemented from tgbotxx::ChatBoostSource.
Definition at line 113 of file ChatBoostSource.hpp.
| std::int32_t tgbotxx::ChatBoostSourceGiveaway::giveawayMessageId {} |
Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn't sent yet.
Definition at line 105 of file ChatBoostSource.hpp.
| bool tgbotxx::ChatBoostSourceGiveaway::isUnclaimed {} |
Optional. True, if the giveaway was completed, but there was no user to win the prize.
Definition at line 111 of file ChatBoostSource.hpp.
Optional. User that won the prize in the giveaway if any.
Definition at line 108 of file ChatBoostSource.hpp.