|
tgbotxx 1.1.9.2
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. | |
| void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
Public Attributes | |
| std::string | boostId |
| Unique identifier of the boost. | |
| std::time_t | addDate {} |
| Point in time (Unix timestamp) when the chat was boosted. | |
| std::time_t | expirationDate {} |
| Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegram Premium subscription is prolonged. | |
| Ptr< ChatBoostSource > | source |
| Source of the added boost. | |
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.