tgbotxx
1.1.6.9
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. More... | |
void | fromJson (const nl::json &json) override |
Deserializes this object from JSON. More... | |
Public Member Functions inherited from tgbotxx::ChatBoostSource | |
ChatBoostSource ()=default | |
ChatBoostSource (const nl::json &json) | |
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. More... | |
Ptr< User > | user |
Optional. User that won the prize in the giveaway if any. More... | |
bool | isUnclaimed {} |
Optional. True, if the giveaway was completed, but there was no user to win the prize. More... | |
Public Attributes inherited from tgbotxx::ChatBoostSource | |
std::string | source |
Source of the boost. More... | |
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 93 of file ChatBoostSource.hpp.
|
inline |
Definition at line 94 of file ChatBoostSource.hpp.
|
inlineexplicit |
Definition at line 97 of file ChatBoostSource.hpp.
|
inlineoverridevirtual |
Deserializes this object from JSON.
Reimplemented from tgbotxx::ChatBoostSource.
Definition at line 119 of file ChatBoostSource.hpp.
|
inlineoverridevirtual |
Serializes this object to JSON.
Reimplemented from tgbotxx::ChatBoostSource.
Definition at line 112 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 104 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 110 of file ChatBoostSource.hpp.
Optional. User that won the prize in the giveaway if any.
Definition at line 107 of file ChatBoostSource.hpp.