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

This object represents a story. . https://core.telegram.org/bots/api#story. More...

#include <Story.hpp>

Public Member Functions

 Story ()=default
 
 Story (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< Chatchat
 Chat that posted the story.
 
std::int32_t id {}
 Unique identifier for the story in the chat.
 

Detailed Description

This object represents a story. . https://core.telegram.org/bots/api#story.

Definition at line 8 of file Story.hpp.

Constructor & Destructor Documentation

◆ Story() [1/2]

tgbotxx::Story::Story ( )
default

◆ Story() [2/2]

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

Definition at line 10 of file Story.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 30 of file Story.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 22 of file Story.hpp.

Member Data Documentation

◆ chat

Ptr<Chat> tgbotxx::Story::chat

Chat that posted the story.

Definition at line 15 of file Story.hpp.

◆ id

std::int32_t tgbotxx::Story::id {}

Unique identifier for the story in the chat.

Definition at line 18 of file Story.hpp.


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