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

Describes a service message about a change in the price of direct messages sent to a channel chat. https://core.telegram.org/bots/api#directmessagepricechanged. More...

#include <DirectMessagePriceChanged.hpp>

Public Member Functions

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

bool areDirectMessagesEnabled {}
 True, if direct messages are enabled for the channel chat; false otherwise.
 
std::int64_t directMessageStarCount {}
 Optional. The new number of Telegram Stars that must be paid by users for each direct message.
 

Detailed Description

Describes a service message about a change in the price of direct messages sent to a channel chat. https://core.telegram.org/bots/api#directmessagepricechanged.

Definition at line 7 of file DirectMessagePriceChanged.hpp.

Constructor & Destructor Documentation

◆ DirectMessagePriceChanged() [1/2]

tgbotxx::DirectMessagePriceChanged::DirectMessagePriceChanged ( )
default

◆ DirectMessagePriceChanged() [2/2]

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

Definition at line 9 of file DirectMessagePriceChanged.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 28 of file DirectMessagePriceChanged.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 21 of file DirectMessagePriceChanged.hpp.

Member Data Documentation

◆ areDirectMessagesEnabled

bool tgbotxx::DirectMessagePriceChanged::areDirectMessagesEnabled {}

True, if direct messages are enabled for the channel chat; false otherwise.

Definition at line 14 of file DirectMessagePriceChanged.hpp.

◆ directMessageStarCount

std::int64_t tgbotxx::DirectMessagePriceChanged::directMessageStarCount {}

Optional. The new number of Telegram Stars that must be paid by users for each direct message.

Definition at line 17 of file DirectMessagePriceChanged.hpp.


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