tgbotxx
1.1.6.9
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 nl::json | toJson () const |
Serializes this object to JSON. More... | |
virtual void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
std::string | source |
Source of the boost. More... | |
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.
|
inlinevirtual |
Deserializes this object from JSON.
Reimplemented in tgbotxx::ChatBoostSourceGiveaway, tgbotxx::ChatBoostSourceGiftCode, and tgbotxx::ChatBoostSourcePremium.
Definition at line 30 of file ChatBoostSource.hpp.
|
inlinevirtual |
Serializes this object to JSON.
Reimplemented in tgbotxx::ChatBoostSourceGiveaway, tgbotxx::ChatBoostSourceGiftCode, and tgbotxx::ChatBoostSourcePremium.
Definition at line 23 of file ChatBoostSource.hpp.
std::string tgbotxx::ChatBoostSource::source |
Source of the boost.
Definition at line 18 of file ChatBoostSource.hpp.