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

Base class for story content to post https://core.telegram.org/bots/api#inputstorycontentphoto. More...

#include <InputStoryContent.hpp>

Inheritance diagram for tgbotxx::InputStoryContent:
tgbotxx::InputStoryContentPhoto tgbotxx::InputStoryContentVideo

Public Member Functions

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

Public Attributes

std::string type
 Type of the story content.
 

Detailed Description

Base class for story content to post https://core.telegram.org/bots/api#inputstorycontentphoto.

Definition at line 8 of file InputStoryContent.hpp.

Constructor & Destructor Documentation

◆ InputStoryContent() [1/2]

tgbotxx::InputStoryContent::InputStoryContent ( )
default

◆ InputStoryContent() [2/2]

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

Definition at line 10 of file InputStoryContent.hpp.

◆ ~InputStoryContent()

virtual tgbotxx::InputStoryContent::~InputStoryContent ( )
virtualdefault

Member Function Documentation

◆ fromJson()

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

◆ toJson()

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

Member Data Documentation

◆ type

std::string tgbotxx::InputStoryContent::type

Type of the story content.

Definition at line 16 of file InputStoryContent.hpp.


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