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

The paid media is a video. https://core.telegram.org/bots/api#paidmediavideo. More...

#include <PaidMedia.hpp>

Inheritance diagram for tgbotxx::PaidMediaVideo:
tgbotxx::PaidMedia

Public Member Functions

 PaidMediaVideo ()
 
 PaidMediaVideo (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::PaidMedia
 PaidMedia ()=default
 
 PaidMedia (const nl::json &json)
 
virtual ~PaidMedia ()=default
 

Public Attributes

Ptr< Videovideo
 The video.
 
- Public Attributes inherited from tgbotxx::PaidMedia
std::string type
 Type of the paid media, one of "preview", "photo" or "video".
 

Detailed Description

The paid media is a video. https://core.telegram.org/bots/api#paidmediavideo.

Definition at line 105 of file PaidMedia.hpp.

Constructor & Destructor Documentation

◆ PaidMediaVideo() [1/2]

tgbotxx::PaidMediaVideo::PaidMediaVideo ( )
inline

Definition at line 106 of file PaidMedia.hpp.

◆ PaidMediaVideo() [2/2]

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

Definition at line 109 of file PaidMedia.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Reimplemented from tgbotxx::PaidMedia.

Definition at line 122 of file PaidMedia.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented from tgbotxx::PaidMedia.

Definition at line 116 of file PaidMedia.hpp.

Member Data Documentation

◆ video

Ptr<Video> tgbotxx::PaidMediaVideo::video

The video.

Definition at line 114 of file PaidMedia.hpp.


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