|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
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< Message > | 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. | |
| 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. | |
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.
|
default |
|
inlineexplicit |
Definition at line 10 of file SuggestedPostRefunded.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 32 of file SuggestedPostRefunded.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 25 of file SuggestedPostRefunded.hpp.
| 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.
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.