|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Describes a service message about a successful payment for a suggested post. https://core.telegram.org/bots/api#suggestedpostpaid. More...
#include <SuggestedPostPaid.hpp>
Public Member Functions | |
| SuggestedPostPaid ()=default | |
| SuggestedPostPaid (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. | |
| std::string | currency |
| Currency in which the payment was made ("XTR" for Stars or "TON" for toncoins) | |
| std::int64_t | amount {} |
| Optional. The amount of the currency that was received (nanotoncoins for TON) | |
| Ptr< StarAmount > | starAmount |
| Optional. The amount of Telegram Stars that was received. | |
Describes a service message about a successful payment for a suggested post. https://core.telegram.org/bots/api#suggestedpostpaid.
Definition at line 9 of file SuggestedPostPaid.hpp.
|
default |
|
inlineexplicit |
Definition at line 11 of file SuggestedPostPaid.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 39 of file SuggestedPostPaid.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 30 of file SuggestedPostPaid.hpp.
| std::int64_t tgbotxx::SuggestedPostPaid::amount {} |
Optional. The amount of the currency that was received (nanotoncoins for TON)
Definition at line 22 of file SuggestedPostPaid.hpp.
| std::string tgbotxx::SuggestedPostPaid::currency |
Currency in which the payment was made ("XTR" for Stars or "TON" for toncoins)
Definition at line 19 of file SuggestedPostPaid.hpp.
| Ptr<StarAmount> tgbotxx::SuggestedPostPaid::starAmount |
Optional. The amount of Telegram Stars that was received.
Definition at line 25 of file SuggestedPostPaid.hpp.
Optional. Message containing the suggested post.
Definition at line 16 of file SuggestedPostPaid.hpp.