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

This object describes a message that was deleted or is otherwise inaccessible to the bot. https://core.telegram.org/bots/api#inaccessiblemessage. More...

#include <InaccessibleMessage.hpp>

Public Member Functions

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

Ptr< Chatchat
 Chat the message belonged to.
 
std::int32_t messageId {}
 Unique message identifier inside the chat.
 
std::time_t date {}
 Always 0. The field can be used to differentiate regular and inaccessible messages.
 

Detailed Description

This object describes a message that was deleted or is otherwise inaccessible to the bot. https://core.telegram.org/bots/api#inaccessiblemessage.

Definition at line 8 of file InaccessibleMessage.hpp.

Constructor & Destructor Documentation

◆ InaccessibleMessage() [1/2]

tgbotxx::InaccessibleMessage::InaccessibleMessage ( )
default

◆ InaccessibleMessage() [2/2]

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

Definition at line 10 of file InaccessibleMessage.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 34 of file InaccessibleMessage.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 25 of file InaccessibleMessage.hpp.

Member Data Documentation

◆ chat

Ptr<Chat> tgbotxx::InaccessibleMessage::chat

Chat the message belonged to.

Definition at line 15 of file InaccessibleMessage.hpp.

◆ date

std::time_t tgbotxx::InaccessibleMessage::date {}

Always 0. The field can be used to differentiate regular and inaccessible messages.

Definition at line 21 of file InaccessibleMessage.hpp.

◆ messageId

std::int32_t tgbotxx::InaccessibleMessage::messageId {}

Unique message identifier inside the chat.

Definition at line 18 of file InaccessibleMessage.hpp.


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