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

This object describes the type of a reaction. Currently, it can be one of: More...

#include <ReactionType.hpp>

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

Public Member Functions

 ReactionType ()=default
 
 ReactionType (const nl::json &json)
 
virtual nl::json toJson () const
 Serializes this object to JSON. More...
 
virtual void fromJson (const nl::json &json)
 Deserializes this object from JSON. More...
 

Public Attributes

std::string type
 Type of the reaction, one of “emoji”, "custom_emoji. More...
 

Detailed Description

This object describes the type of a reaction. Currently, it can be one of:

Definition at line 9 of file ReactionType.hpp.

Constructor & Destructor Documentation

◆ ReactionType() [1/2]

tgbotxx::ReactionType::ReactionType ( )
default

◆ ReactionType() [2/2]

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

Definition at line 11 of file ReactionType.hpp.

Member Function Documentation

◆ fromJson()

virtual void tgbotxx::ReactionType::fromJson ( const nl::json &  json)
inlinevirtual

Deserializes this object from JSON.

Reimplemented in tgbotxx::ReactionTypeCustomEmoji, and tgbotxx::ReactionTypeEmoji.

Definition at line 28 of file ReactionType.hpp.

◆ toJson()

virtual nl::json tgbotxx::ReactionType::toJson ( ) const
inlinevirtual

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented in tgbotxx::ReactionTypeCustomEmoji, and tgbotxx::ReactionTypeEmoji.

Definition at line 21 of file ReactionType.hpp.

Member Data Documentation

◆ type

std::string tgbotxx::ReactionType::type

Type of the reaction, one of “emoji”, "custom_emoji.

Definition at line 16 of file ReactionType.hpp.


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