tgbotxx
1.1.6.9
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#chatboostsourcepremium. More...
#include <ChatBoostSource.hpp>
Public Member Functions | |
ChatBoostSourcePremium () | |
ChatBoostSourcePremium (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 | |
Ptr< User > | user |
User that boosted the chat. More... | |
Public Attributes inherited from tgbotxx::ChatBoostSource | |
std::string | source |
Source of the boost. More... | |
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#chatboostsourcepremium.
Definition at line 42 of file ChatBoostSource.hpp.
|
inline |
Definition at line 43 of file ChatBoostSource.hpp.
|
inlineexplicit |
Definition at line 46 of file ChatBoostSource.hpp.
|
inlineoverridevirtual |
Deserializes this object from JSON.
Reimplemented from tgbotxx::ChatBoostSource.
Definition at line 59 of file ChatBoostSource.hpp.
|
inlineoverridevirtual |
Serializes this object to JSON.
Reimplemented from tgbotxx::ChatBoostSource.
Definition at line 54 of file ChatBoostSource.hpp.
User that boosted the chat.
Definition at line 52 of file ChatBoostSource.hpp.