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

This object represents a service message about a new forum topic created in the chat. https://core.telegram.org/bots/api#forumtopiccreated. More...

#include <ForumTopicCreated.hpp>

Public Member Functions

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

Detailed Description

This object represents a service message about a new forum topic created in the chat. https://core.telegram.org/bots/api#forumtopiccreated.

Definition at line 7 of file ForumTopicCreated.hpp.

Constructor & Destructor Documentation

◆ ForumTopicCreated() [1/2]

tgbotxx::ForumTopicCreated::ForumTopicCreated ( )
default

◆ ForumTopicCreated() [2/2]

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

Definition at line 9 of file ForumTopicCreated.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 34 of file ForumTopicCreated.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 25 of file ForumTopicCreated.hpp.

Member Data Documentation

◆ iconColor

std::int32_t tgbotxx::ForumTopicCreated::iconColor {}

Color of the topic icon in RGB format.

Definition at line 17 of file ForumTopicCreated.hpp.

◆ iconCustomEmojiId

std::string tgbotxx::ForumTopicCreated::iconCustomEmojiId

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

Definition at line 20 of file ForumTopicCreated.hpp.

◆ name

std::string tgbotxx::ForumTopicCreated::name

Name of the topic.

Definition at line 14 of file ForumTopicCreated.hpp.


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