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

This object represents a service message about a change in auto-delete timer settings. https://core.telegram.org/bots/api#messageautodeletetimerchanged. More...

#include <MessageAutoDeleteTimerChanged.hpp>

Public Member Functions

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

std::int32_t messageAutoDeleteTime {}
 New auto-delete time for messages in the chat; in seconds. More...
 

Detailed Description

This object represents a service message about a change in auto-delete timer settings. https://core.telegram.org/bots/api#messageautodeletetimerchanged.

Definition at line 7 of file MessageAutoDeleteTimerChanged.hpp.

Constructor & Destructor Documentation

◆ MessageAutoDeleteTimerChanged() [1/2]

tgbotxx::MessageAutoDeleteTimerChanged::MessageAutoDeleteTimerChanged ( )
default

◆ MessageAutoDeleteTimerChanged() [2/2]

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

Definition at line 9 of file MessageAutoDeleteTimerChanged.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 24 of file MessageAutoDeleteTimerChanged.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 17 of file MessageAutoDeleteTimerChanged.hpp.

Member Data Documentation

◆ messageAutoDeleteTime

std::int32_t tgbotxx::MessageAutoDeleteTimerChanged::messageAutoDeleteTime {}

New auto-delete time for messages in the chat; in seconds.

Definition at line 13 of file MessageAutoDeleteTimerChanged.hpp.


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