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

This object represents a unique message identifier. https://core.telegram.org/bots/api#messageid. More...

#include <MessageId.hpp>

Public Member Functions

 MessageId ()=default
 
 MessageId (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 messageId {}
 

Detailed Description

This object represents a unique message identifier. https://core.telegram.org/bots/api#messageid.

Definition at line 7 of file MessageId.hpp.

Constructor & Destructor Documentation

◆ MessageId() [1/2]

tgbotxx::MessageId::MessageId ( )
default

◆ MessageId() [2/2]

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

Definition at line 9 of file MessageId.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 24 of file MessageId.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 17 of file MessageId.hpp.

Member Data Documentation

◆ messageId

std::int32_t tgbotxx::MessageId::messageId {}

Definition at line 13 of file MessageId.hpp.


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