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

Describes a photo to post as a story https://core.telegram.org/bots/api#inputstorycontentphoto. More...

#include <InputStoryContent.hpp>

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

Public Member Functions

 InputStoryContentPhoto ()
 
 InputStoryContentPhoto (const nl::json &json)
 
nl::json toJson () const override
 Serializes this object to JSON.
 
void fromJson (const nl::json &json) override
 Deserializes this object from JSON.
 
- Public Member Functions inherited from tgbotxx::InputStoryContent
 InputStoryContent ()=default
 
 InputStoryContent (const nl::json &json)
 
virtual ~InputStoryContent ()=default
 

Public Attributes

std::string photo
 The photo to post as a story. Must be 1080x1920 and <= 10MB. Can't be reused.
 
- Public Attributes inherited from tgbotxx::InputStoryContent
std::string type
 Type of the story content.
 

Detailed Description

Describes a photo to post as a story https://core.telegram.org/bots/api#inputstorycontentphoto.

Definition at line 36 of file InputStoryContent.hpp.

Constructor & Destructor Documentation

◆ InputStoryContentPhoto() [1/2]

tgbotxx::InputStoryContentPhoto::InputStoryContentPhoto ( )
inline

Definition at line 37 of file InputStoryContent.hpp.

◆ InputStoryContentPhoto() [2/2]

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

Definition at line 40 of file InputStoryContent.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Reimplemented from tgbotxx::InputStoryContent.

Definition at line 56 of file InputStoryContent.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented from tgbotxx::InputStoryContent.

Definition at line 49 of file InputStoryContent.hpp.

Member Data Documentation

◆ photo

std::string tgbotxx::InputStoryContentPhoto::photo

The photo to post as a story. Must be 1080x1920 and <= 10MB. Can't be reused.

Definition at line 45 of file InputStoryContent.hpp.


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