tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
This object contains information about a chat boost. https://core.telegram.org/bots/api#chatboost. More...
#include <ChatBoost.hpp>
Public Member Functions | |
ChatBoost ()=default | |
ChatBoost (const nl::json &json) | |
nl::json | toJson () const |
Serializes this object to JSON. More... | |
void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
std::string | boostId |
Unique identifier of the boost. More... | |
std::time_t | addDate {} |
Point in time (Unix timestamp) when the chat was boosted. More... | |
std::time_t | expirationDate {} |
Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegram Premium subscription is prolonged. More... | |
Ptr< ChatBoostSource > | source |
Source of the added boost. More... | |
This object contains information about a chat boost. https://core.telegram.org/bots/api#chatboost.
Definition at line 8 of file ChatBoost.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file ChatBoost.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 39 of file ChatBoost.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 29 of file ChatBoost.hpp.
std::time_t tgbotxx::ChatBoost::addDate {} |
Point in time (Unix timestamp) when the chat was boosted.
Definition at line 18 of file ChatBoost.hpp.
std::string tgbotxx::ChatBoost::boostId |
Unique identifier of the boost.
Definition at line 15 of file ChatBoost.hpp.
std::time_t tgbotxx::ChatBoost::expirationDate {} |
Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegram Premium subscription is prolonged.
Definition at line 21 of file ChatBoost.hpp.
Ptr<ChatBoostSource> tgbotxx::ChatBoost::source |
Source of the added boost.
Definition at line 24 of file ChatBoost.hpp.