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

Describes a clickable area on a story media https://core.telegram.org/bots/api#storyarea. More...

#include <StoryArea.hpp>

Public Member Functions

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

Public Attributes

Ptr< StoryAreaPositionposition
 Position of the area.
 
Ptr< StoryAreaTypetype
 Type of the area.
 

Detailed Description

Describes a clickable area on a story media https://core.telegram.org/bots/api#storyarea.

Definition at line 10 of file StoryArea.hpp.

Constructor & Destructor Documentation

◆ StoryArea() [1/2]

tgbotxx::StoryArea::StoryArea ( )
default

◆ StoryArea() [2/2]

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

Definition at line 12 of file StoryArea.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 32 of file StoryArea.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 24 of file StoryArea.hpp.

Member Data Documentation

◆ position

Ptr<StoryAreaPosition> tgbotxx::StoryArea::position

Position of the area.

Definition at line 17 of file StoryArea.hpp.

◆ type

Ptr<StoryAreaType> tgbotxx::StoryArea::type

Type of the area.

Definition at line 20 of file StoryArea.hpp.


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