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

This object represents a forum topic. https://core.telegram.org/bots/api#forumtopic. More...

#include <ForumTopic.hpp>

Public Member Functions

 ForumTopic ()=default
 
 ForumTopic (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 messageThreadId {}
 Unique identifier of the forum topic. More...
 
std::string name
 Name of the topic. More...
 
std::int32_t iconColor {}
 Color of the topic icon in RGB format. More...
 
std::int32_t iconCustomEmojiId {}
 Optional. Unique identifier of the custom emoji shown as the topic icon. More...
 

Detailed Description

This object represents a forum topic. https://core.telegram.org/bots/api#forumtopic.

Definition at line 7 of file ForumTopic.hpp.

Constructor & Destructor Documentation

◆ ForumTopic() [1/2]

tgbotxx::ForumTopic::ForumTopic ( )
default

◆ ForumTopic() [2/2]

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

Definition at line 9 of file ForumTopic.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 37 of file ForumTopic.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 27 of file ForumTopic.hpp.

Member Data Documentation

◆ iconColor

std::int32_t tgbotxx::ForumTopic::iconColor {}

Color of the topic icon in RGB format.

Definition at line 20 of file ForumTopic.hpp.

◆ iconCustomEmojiId

std::int32_t tgbotxx::ForumTopic::iconCustomEmojiId {}

Optional. Unique identifier of the custom emoji shown as the topic icon.

Definition at line 23 of file ForumTopic.hpp.

◆ messageThreadId

std::int32_t tgbotxx::ForumTopic::messageThreadId {}

Unique identifier of the forum topic.

Definition at line 14 of file ForumTopic.hpp.

◆ name

std::string tgbotxx::ForumTopic::name

Name of the topic.

Definition at line 17 of file ForumTopic.hpp.


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