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

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

#include <SuggestedPostApprovalFailed.hpp>

Public Member Functions

 SuggestedPostApprovalFailed ()=default
 
 SuggestedPostApprovalFailed (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 whose approval has failed.
 
Ptr< SuggestedPostPriceprice
 Expected price of the post.
 

Detailed Description

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

Definition at line 9 of file SuggestedPostApprovalFailed.hpp.

Constructor & Destructor Documentation

◆ SuggestedPostApprovalFailed() [1/2]

tgbotxx::SuggestedPostApprovalFailed::SuggestedPostApprovalFailed ( )
default

◆ SuggestedPostApprovalFailed() [2/2]

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

Definition at line 11 of file SuggestedPostApprovalFailed.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 31 of file SuggestedPostApprovalFailed.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 24 of file SuggestedPostApprovalFailed.hpp.

Member Data Documentation

◆ price

Ptr<SuggestedPostPrice> tgbotxx::SuggestedPostApprovalFailed::price

Expected price of the post.

Definition at line 19 of file SuggestedPostApprovalFailed.hpp.

◆ suggestedPostMessage

Ptr<Message> tgbotxx::SuggestedPostApprovalFailed::suggestedPostMessage

Optional. Message containing the suggested post whose approval has failed.

Definition at line 16 of file SuggestedPostApprovalFailed.hpp.


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