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

The reaction is based on a custom emoji. https://core.telegram.org/bots/api#reactiontypecustomemoji. More...

#include <ReactionType.hpp>

Inheritance diagram for tgbotxx::ReactionTypeCustomEmoji:
tgbotxx::ReactionType

Public Member Functions

 ReactionTypeCustomEmoji ()
 
 ReactionTypeCustomEmoji (const nl::json &json)
 
nl::json toJson () const override
 Serializes this object to JSON. More...
 
void fromJson (const nl::json &json) override
 Deserializes this object from JSON. More...
 
- Public Member Functions inherited from tgbotxx::ReactionType
 ReactionType ()=default
 
 ReactionType (const nl::json &json)
 

Public Attributes

std::string customEmojiId
 Custom emoji identifier. More...
 
- Public Attributes inherited from tgbotxx::ReactionType
std::string type
 Type of the reaction, one of “emoji”, "custom_emoji. More...
 

Detailed Description

The reaction is based on a custom emoji. https://core.telegram.org/bots/api#reactiontypecustomemoji.

Definition at line 70 of file ReactionType.hpp.

Constructor & Destructor Documentation

◆ ReactionTypeCustomEmoji() [1/2]

tgbotxx::ReactionTypeCustomEmoji::ReactionTypeCustomEmoji ( )
inline

Definition at line 71 of file ReactionType.hpp.

◆ ReactionTypeCustomEmoji() [2/2]

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

Definition at line 74 of file ReactionType.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::ReactionTypeCustomEmoji::fromJson ( const nl::json &  json)
inlineoverridevirtual

Deserializes this object from JSON.

Reimplemented from tgbotxx::ReactionType.

Definition at line 88 of file ReactionType.hpp.

◆ toJson()

nl::json tgbotxx::ReactionTypeCustomEmoji::toJson ( ) const
inlineoverridevirtual

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented from tgbotxx::ReactionType.

Definition at line 83 of file ReactionType.hpp.

Member Data Documentation

◆ customEmojiId

std::string tgbotxx::ReactionTypeCustomEmoji::customEmojiId

Custom emoji identifier.

Definition at line 80 of file ReactionType.hpp.


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