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

This object represents a boost removed from a chat. https://core.telegram.org/bots/api#chatboostremoved. More...

#include <ChatBoostRemoved.hpp>

Public Member Functions

 ChatBoostRemoved ()=default
 
 ChatBoostRemoved (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...
 
std::string boostID
 Unique identifier of the boost. More...
 
std::time_t removeDate {}
 Point in time (Unix timestamp) when the boost was removed. More...
 
Ptr< ChatBoostSourcesource
 Source of the removed boost. More...
 

Detailed Description

This object represents a boost removed from a chat. https://core.telegram.org/bots/api#chatboostremoved.

Definition at line 9 of file ChatBoostRemoved.hpp.

Constructor & Destructor Documentation

◆ ChatBoostRemoved() [1/2]

tgbotxx::ChatBoostRemoved::ChatBoostRemoved ( )
default

◆ ChatBoostRemoved() [2/2]

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

Definition at line 11 of file ChatBoostRemoved.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 40 of file ChatBoostRemoved.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 30 of file ChatBoostRemoved.hpp.

Member Data Documentation

◆ boostID

std::string tgbotxx::ChatBoostRemoved::boostID

Unique identifier of the boost.

Definition at line 19 of file ChatBoostRemoved.hpp.

◆ chat

Ptr<Chat> tgbotxx::ChatBoostRemoved::chat

Chat which was boosted.

Definition at line 16 of file ChatBoostRemoved.hpp.

◆ removeDate

std::time_t tgbotxx::ChatBoostRemoved::removeDate {}

Point in time (Unix timestamp) when the boost was removed.

Definition at line 22 of file ChatBoostRemoved.hpp.

◆ source

Ptr<ChatBoostSource> tgbotxx::ChatBoostRemoved::source

Source of the removed boost.

Definition at line 25 of file ChatBoostRemoved.hpp.


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