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

Describes a service message about a change in the price of paid messages within a chat. https://core.telegram.org/bots/api#paidmessagepricechanged. More...

#include <PaidMessagePriceChanged.hpp>

Public Member Functions

 PaidMessagePriceChanged ()=default
 
 PaidMessagePriceChanged (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

std::int64_t paidMessageStarCount {}
 The new number of Telegram Stars that must be paid by non-administrator users for each message.
 

Detailed Description

Describes a service message about a change in the price of paid messages within a chat. https://core.telegram.org/bots/api#paidmessagepricechanged.

Definition at line 7 of file PaidMessagePriceChanged.hpp.

Constructor & Destructor Documentation

◆ PaidMessagePriceChanged() [1/2]

tgbotxx::PaidMessagePriceChanged::PaidMessagePriceChanged ( )
default

◆ PaidMessagePriceChanged() [2/2]

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

Definition at line 9 of file PaidMessagePriceChanged.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 24 of file PaidMessagePriceChanged.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 18 of file PaidMessagePriceChanged.hpp.

Member Data Documentation

◆ paidMessageStarCount

std::int64_t tgbotxx::PaidMessagePriceChanged::paidMessageStarCount {}

The new number of Telegram Stars that must be paid by non-administrator users for each message.

Definition at line 14 of file PaidMessagePriceChanged.hpp.


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