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

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< MessagesuggestedPostMessage
 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< StarAmountstarAmount
 Optional. The amount of Telegram Stars that was received.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SuggestedPostPaid() [1/2]

tgbotxx::SuggestedPostPaid::SuggestedPostPaid ( )
default

◆ SuggestedPostPaid() [2/2]

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

Definition at line 11 of file SuggestedPostPaid.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 39 of file SuggestedPostPaid.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 30 of file SuggestedPostPaid.hpp.

Member Data Documentation

◆ amount

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.

◆ currency

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.

◆ starAmount

Ptr<StarAmount> tgbotxx::SuggestedPostPaid::starAmount

Optional. The amount of Telegram Stars that was received.

Definition at line 25 of file SuggestedPostPaid.hpp.

◆ suggestedPostMessage

Ptr<Message> tgbotxx::SuggestedPostPaid::suggestedPostMessage

Optional. Message containing the suggested post.

Definition at line 16 of file SuggestedPostPaid.hpp.


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