|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Contains parameters of a post that is being suggested by the bot. https://core.telegram.org/bots/api#suggestedpostparameters. More...
#include <SuggestedPostParameters.hpp>
Public Member Functions | |
| SuggestedPostParameters ()=default | |
| SuggestedPostParameters (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 | |
| Ptr< SuggestedPostPrice > | price |
| Optional. Proposed price for the post. If the field is omitted, then the post is unpaid. | |
| std::time_t | sendDate {} |
| Optional. Proposed send date of the post. If specified, then the date must be between 300 second and 2678400 seconds (30 days) in the future. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user who approves it. | |
Contains parameters of a post that is being suggested by the bot. https://core.telegram.org/bots/api#suggestedpostparameters.
Definition at line 8 of file SuggestedPostParameters.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file SuggestedPostParameters.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 32 of file SuggestedPostParameters.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 24 of file SuggestedPostParameters.hpp.
| Ptr<SuggestedPostPrice> tgbotxx::SuggestedPostParameters::price |
Optional. Proposed price for the post. If the field is omitted, then the post is unpaid.
Definition at line 15 of file SuggestedPostParameters.hpp.
| std::time_t tgbotxx::SuggestedPostParameters::sendDate {} |
Optional. Proposed send date of the post. If specified, then the date must be between 300 second and 2678400 seconds (30 days) in the future. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user who approves it.
Definition at line 20 of file SuggestedPostParameters.hpp.