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

Describes a service message about a payment refund for a suggested post. https://core.telegram.org/bots/api#suggestedpostrefunded. More...

#include <SuggestedPostRefunded.hpp>

Public Member Functions

 SuggestedPostRefunded ()=default
 
 SuggestedPostRefunded (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. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.
 
std::string reason
 Reason for the refund. Currently, one of “post_deleted” if the post was deleted within 24 hours of being posted or removed from scheduled messages without being posted, or “payment_refunded” if the payer refunded their payment.
 

Detailed Description

Describes a service message about a payment refund for a suggested post. https://core.telegram.org/bots/api#suggestedpostrefunded.

Definition at line 8 of file SuggestedPostRefunded.hpp.

Constructor & Destructor Documentation

◆ SuggestedPostRefunded() [1/2]

tgbotxx::SuggestedPostRefunded::SuggestedPostRefunded ( )
default

◆ SuggestedPostRefunded() [2/2]

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

Definition at line 10 of file SuggestedPostRefunded.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 32 of file SuggestedPostRefunded.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 25 of file SuggestedPostRefunded.hpp.

Member Data Documentation

◆ reason

std::string tgbotxx::SuggestedPostRefunded::reason

Reason for the refund. Currently, one of “post_deleted” if the post was deleted within 24 hours of being posted or removed from scheduled messages without being posted, or “payment_refunded” if the payer refunded their payment.

Definition at line 21 of file SuggestedPostRefunded.hpp.

◆ suggestedPostMessage

Ptr<Message> tgbotxx::SuggestedPostRefunded::suggestedPostMessage

Optional. Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.

Definition at line 16 of file SuggestedPostRefunded.hpp.


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