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

Describes a service message about the approval of a suggested post. https://core.telegram.org/bots/api#suggestedpostapproved. More...

#include <SuggestedPostApproved.hpp>

Public Member Functions

 SuggestedPostApproved ()=default
 
 SuggestedPostApproved (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< MessagesuggestedPostMessage
 Optional. Message containing the suggested post.
 
Ptr< SuggestedPostPriceprice
 Optional. Amount paid for the post.
 
std::time_t sendDate {}
 Date when the post will be published.
 

Detailed Description

Describes a service message about the approval of a suggested post. https://core.telegram.org/bots/api#suggestedpostapproved.

Definition at line 10 of file SuggestedPostApproved.hpp.

Constructor & Destructor Documentation

◆ SuggestedPostApproved() [1/2]

tgbotxx::SuggestedPostApproved::SuggestedPostApproved ( )
default

◆ SuggestedPostApproved() [2/2]

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

Definition at line 12 of file SuggestedPostApproved.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 35 of file SuggestedPostApproved.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 27 of file SuggestedPostApproved.hpp.

Member Data Documentation

◆ price

Ptr<SuggestedPostPrice> tgbotxx::SuggestedPostApproved::price

Optional. Amount paid for the post.

Definition at line 20 of file SuggestedPostApproved.hpp.

◆ sendDate

std::time_t tgbotxx::SuggestedPostApproved::sendDate {}

Date when the post will be published.

Definition at line 23 of file SuggestedPostApproved.hpp.

◆ suggestedPostMessage

Ptr<Message> tgbotxx::SuggestedPostApproved::suggestedPostMessage

Optional. Message containing the suggested post.

Definition at line 17 of file SuggestedPostApproved.hpp.


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