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

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

#include <SuggestedPostDeclined.hpp>

Public Member Functions

 SuggestedPostDeclined ()=default
 
 SuggestedPostDeclined (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.
 
std::string comment
 Optional. Comment with which the post was declined.
 

Detailed Description

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

Definition at line 8 of file SuggestedPostDeclined.hpp.

Constructor & Destructor Documentation

◆ SuggestedPostDeclined() [1/2]

tgbotxx::SuggestedPostDeclined::SuggestedPostDeclined ( )
default

◆ SuggestedPostDeclined() [2/2]

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

Definition at line 10 of file SuggestedPostDeclined.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 30 of file SuggestedPostDeclined.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 23 of file SuggestedPostDeclined.hpp.

Member Data Documentation

◆ comment

std::string tgbotxx::SuggestedPostDeclined::comment

Optional. Comment with which the post was declined.

Definition at line 18 of file SuggestedPostDeclined.hpp.

◆ suggestedPostMessage

Ptr<Message> tgbotxx::SuggestedPostDeclined::suggestedPostMessage

Optional. Message containing the suggested post.

Definition at line 15 of file SuggestedPostDeclined.hpp.


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