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

The paid media to send is a video. More...

#include <InputPaidMedia.hpp>

Inheritance diagram for tgbotxx::InputPaidMediaVideo:
tgbotxx::InputPaidMedia

Public Member Functions

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

Public Attributes

std::string thumbnail
 Optional. Thumbnail of the file sent.
 
std::string cover
 Optional. Cover for the video in the message.
 
std::time_t startTimestamp {}
 Optional. Start timestamp for the video.
 
std::int32_t width {}
 Optional. Video width.
 
std::int32_t height {}
 Optional. Video height.
 
std::time_t duration {}
 Optional. Video duration in seconds.
 
bool supportsStreaming {}
 Optional. True if the uploaded video is suitable for streaming.
 
- Public Attributes inherited from tgbotxx::InputPaidMedia
std::string type
 Type of the media.
 
std::variant< cpr::File, std::string > media {""}
 File to send.
 

Detailed Description

The paid media to send is a video.

Definition at line 75 of file InputPaidMedia.hpp.

Constructor & Destructor Documentation

◆ InputPaidMediaVideo() [1/2]

tgbotxx::InputPaidMediaVideo::InputPaidMediaVideo ( )
inline

Definition at line 76 of file InputPaidMedia.hpp.

◆ InputPaidMediaVideo() [2/2]

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

Definition at line 79 of file InputPaidMedia.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Reimplemented from tgbotxx::InputPaidMedia.

Definition at line 116 of file InputPaidMedia.hpp.

◆ toJson()

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

Serializes this object to JSON.

Reimplemented from tgbotxx::InputPaidMedia.

Definition at line 104 of file InputPaidMedia.hpp.

Member Data Documentation

◆ cover

std::string tgbotxx::InputPaidMediaVideo::cover

Optional. Cover for the video in the message.

Definition at line 87 of file InputPaidMedia.hpp.

◆ duration

std::time_t tgbotxx::InputPaidMediaVideo::duration {}

Optional. Video duration in seconds.

Definition at line 99 of file InputPaidMedia.hpp.

◆ height

std::int32_t tgbotxx::InputPaidMediaVideo::height {}

Optional. Video height.

Definition at line 96 of file InputPaidMedia.hpp.

◆ startTimestamp

std::time_t tgbotxx::InputPaidMediaVideo::startTimestamp {}

Optional. Start timestamp for the video.

Definition at line 90 of file InputPaidMedia.hpp.

◆ supportsStreaming

bool tgbotxx::InputPaidMediaVideo::supportsStreaming {}

Optional. True if the uploaded video is suitable for streaming.

Definition at line 102 of file InputPaidMedia.hpp.

◆ thumbnail

std::string tgbotxx::InputPaidMediaVideo::thumbnail

Optional. Thumbnail of the file sent.

Definition at line 84 of file InputPaidMedia.hpp.

◆ width

std::int32_t tgbotxx::InputPaidMediaVideo::width {}

Optional. Video width.

Definition at line 93 of file InputPaidMedia.hpp.


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