|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
The boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium subscription to another user. https://core.telegram.org/bots/api#chatboostsourcegiftcode. More...
#include <ChatBoostSource.hpp>
Public Member Functions | |
| ChatBoostSourceGiftCode () | |
| ChatBoostSourceGiftCode (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 | |
| Ptr< User > | user |
| User for which the gift code was created. | |
Public Attributes inherited from tgbotxx::ChatBoostSource | |
| std::string | source |
| Source of the boost. | |
The boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium subscription to another user. https://core.telegram.org/bots/api#chatboostsourcegiftcode.
Definition at line 68 of file ChatBoostSource.hpp.
|
inline |
Definition at line 69 of file ChatBoostSource.hpp.
|
inlineexplicit |
Definition at line 72 of file ChatBoostSource.hpp.
|
inlineoverridevirtual |
Deserializes this object from JSON.
Reimplemented from tgbotxx::ChatBoostSource.
Definition at line 85 of file ChatBoostSource.hpp.
|
inlineoverridevirtual |
Serializes this object to JSON.
Reimplemented from tgbotxx::ChatBoostSource.
Definition at line 80 of file ChatBoostSource.hpp.
User for which the gift code was created.
Definition at line 78 of file ChatBoostSource.hpp.