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

Base class for types of clickable areas on a story https://core.telegram.org/bots/api#storyareatype. More...

#include <StoryAreaType.hpp>

Inheritance diagram for tgbotxx::StoryAreaType:
tgbotxx::StoryAreaTypeLink tgbotxx::StoryAreaTypeLocation tgbotxx::StoryAreaTypeSuggestedReaction tgbotxx::StoryAreaTypeUniqueGift tgbotxx::StoryAreaTypeWeather

Public Member Functions

 StoryAreaType ()=default
 
 StoryAreaType (const nl::json &json)
 
virtual ~StoryAreaType ()=default
 
virtual nl::json toJson () const
 
virtual void fromJson (const nl::json &json)
 

Public Attributes

std::string type
 Type of the area.
 

Detailed Description

Base class for types of clickable areas on a story https://core.telegram.org/bots/api#storyareatype.

Definition at line 11 of file StoryAreaType.hpp.

Constructor & Destructor Documentation

◆ StoryAreaType() [1/2]

tgbotxx::StoryAreaType::StoryAreaType ( )
default

◆ StoryAreaType() [2/2]

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

Definition at line 13 of file StoryAreaType.hpp.

◆ ~StoryAreaType()

virtual tgbotxx::StoryAreaType::~StoryAreaType ( )
virtualdefault

Member Function Documentation

◆ fromJson()

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

◆ toJson()

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

Member Data Documentation

◆ type

std::string tgbotxx::StoryAreaType::type

Type of the area.

Definition at line 19 of file StoryAreaType.hpp.


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