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

This object contains information about a paid media purchase. https://core.telegram.org/bots/api#paidmediapurchased. More...

#include <PaidMediaPurchased.hpp>

Public Member Functions

 PaidMediaPurchased ()=default
 
 PaidMediaPurchased (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< Userfrom
 User who purchased the media.
 
std::string paidMediaPayload
 Bot-specified paid media payload.
 

Detailed Description

This object contains information about a paid media purchase. https://core.telegram.org/bots/api#paidmediapurchased.

Definition at line 9 of file PaidMediaPurchased.hpp.

Constructor & Destructor Documentation

◆ PaidMediaPurchased() [1/2]

tgbotxx::PaidMediaPurchased::PaidMediaPurchased ( )
default

◆ PaidMediaPurchased() [2/2]

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

Definition at line 11 of file PaidMediaPurchased.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 31 of file PaidMediaPurchased.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 23 of file PaidMediaPurchased.hpp.

Member Data Documentation

◆ from

Ptr<User> tgbotxx::PaidMediaPurchased::from

User who purchased the media.

Definition at line 16 of file PaidMediaPurchased.hpp.

◆ paidMediaPayload

std::string tgbotxx::PaidMediaPurchased::paidMediaPayload

Bot-specified paid media payload.

Definition at line 19 of file PaidMediaPurchased.hpp.


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