tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::ChatBoostUpdated Struct Reference

This object represents a boost added to a chat or changed. https://core.telegram.org/bots/api#chatboostupdated. More...

#include <ChatBoostUpdated.hpp>

Public Member Functions

 ChatBoostUpdated ()=default
 
 ChatBoostUpdated (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON. More...
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON. More...
 

Public Attributes

Ptr< Chatchat
 Chat which was boosted. More...
 
Ptr< ChatBoostboost
 Information about the chat boost. More...
 

Detailed Description

This object represents a boost added to a chat or changed. https://core.telegram.org/bots/api#chatboostupdated.

Definition at line 9 of file ChatBoostUpdated.hpp.

Constructor & Destructor Documentation

◆ ChatBoostUpdated() [1/2]

tgbotxx::ChatBoostUpdated::ChatBoostUpdated ( )
default

◆ ChatBoostUpdated() [2/2]

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

Definition at line 11 of file ChatBoostUpdated.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 32 of file ChatBoostUpdated.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 24 of file ChatBoostUpdated.hpp.

Member Data Documentation

◆ boost

Ptr<ChatBoost> tgbotxx::ChatBoostUpdated::boost

Information about the chat boost.

Definition at line 19 of file ChatBoostUpdated.hpp.

◆ chat

Ptr<Chat> tgbotxx::ChatBoostUpdated::chat

Chat which was boosted.

Definition at line 16 of file ChatBoostUpdated.hpp.


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