tgbotxx 1.1.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::SuggestedPostParameters Struct Reference

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< SuggestedPostPriceprice
 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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SuggestedPostParameters() [1/2]

tgbotxx::SuggestedPostParameters::SuggestedPostParameters ( )
default

◆ SuggestedPostParameters() [2/2]

tgbotxx::SuggestedPostParameters::SuggestedPostParameters ( const nl::json &  json)
inlineexplicit

Definition at line 10 of file SuggestedPostParameters.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::SuggestedPostParameters::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 32 of file SuggestedPostParameters.hpp.

◆ toJson()

nl::json tgbotxx::SuggestedPostParameters::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 24 of file SuggestedPostParameters.hpp.

Member Data Documentation

◆ price

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.

◆ sendDate

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.


The documentation for this struct was generated from the following file: