|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
This object describes the source of a chat boost. It can be one of: More...
#include <ChatBoostSource.hpp>
Public Member Functions | |
| ChatBoostSource ()=default | |
| ChatBoostSource (const nl::json &json) | |
| virtual | ~ChatBoostSource ()=default |
| virtual nl::json | toJson () const |
| Serializes this object to JSON. | |
| virtual void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
Public Attributes | |
| std::string | source |
| Source of the boost. | |
This object describes the source of a chat boost. It can be one of:
Definition at line 11 of file ChatBoostSource.hpp.
|
default |
|
inlineexplicit |
Definition at line 13 of file ChatBoostSource.hpp.
|
virtualdefault |
|
inlinevirtual |
Deserializes this object from JSON.
Reimplemented in tgbotxx::ChatBoostSourcePremium, tgbotxx::ChatBoostSourceGiftCode, and tgbotxx::ChatBoostSourceGiveaway.
Definition at line 31 of file ChatBoostSource.hpp.
|
inlinevirtual |
Serializes this object to JSON.
Reimplemented in tgbotxx::ChatBoostSourcePremium, tgbotxx::ChatBoostSourceGiftCode, and tgbotxx::ChatBoostSourceGiveaway.
Definition at line 24 of file ChatBoostSource.hpp.
| std::string tgbotxx::ChatBoostSource::source |
Source of the boost.
Definition at line 19 of file ChatBoostSource.hpp.