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

Describes a topic of a direct messages chat. https://core.telegram.org/bots/api#directmessagestopic. More...

#include <DirectMessagesTopic.hpp>

Public Member Functions

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

std::int64_t topicId {}
 Unique identifier of the topic. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
 
Ptr< Useruser
 Optional. Information about the user that created the topic. Currently, it is always present.
 

Detailed Description

Describes a topic of a direct messages chat. https://core.telegram.org/bots/api#directmessagestopic.

Definition at line 8 of file DirectMessagesTopic.hpp.

Constructor & Destructor Documentation

◆ DirectMessagesTopic() [1/2]

tgbotxx::DirectMessagesTopic::DirectMessagesTopic ( )
default

◆ DirectMessagesTopic() [2/2]

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

Definition at line 10 of file DirectMessagesTopic.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 33 of file DirectMessagesTopic.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 25 of file DirectMessagesTopic.hpp.

Member Data Documentation

◆ topicId

std::int64_t tgbotxx::DirectMessagesTopic::topicId {}

Unique identifier of the topic. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.

Definition at line 17 of file DirectMessagesTopic.hpp.

◆ user

Ptr<User> tgbotxx::DirectMessagesTopic::user

Optional. Information about the user that created the topic. Currently, it is always present.

Definition at line 20 of file DirectMessagesTopic.hpp.


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