Describes a service message about a successful payment for a suggested post. https://core....
std::int64_t amount
Optional. The amount of the currency that was received (nanotoncoins for TON)
SuggestedPostPaid(const nl::json &json)
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)
SuggestedPostPaid()=default
Ptr< StarAmount > starAmount
Optional. The amount of Telegram Stars that was received.
nl::json toJson() const
Serializes this object to JSON.
void fromJson(const nl::json &json)
Deserializes this object from JSON.