|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
The paid media to send is a video. More...
#include <InputPaidMedia.hpp>
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. | |
The paid media to send is a video.
Definition at line 75 of file InputPaidMedia.hpp.
|
inline |
Definition at line 76 of file InputPaidMedia.hpp.
|
inlineexplicit |
Definition at line 79 of file InputPaidMedia.hpp.
|
inlineoverridevirtual |
Deserializes this object from JSON.
Reimplemented from tgbotxx::InputPaidMedia.
Definition at line 116 of file InputPaidMedia.hpp.
|
inlineoverridevirtual |
Serializes this object to JSON.
Reimplemented from tgbotxx::InputPaidMedia.
Definition at line 104 of file InputPaidMedia.hpp.
| std::string tgbotxx::InputPaidMediaVideo::cover |
Optional. Cover for the video in the message.
Definition at line 87 of file InputPaidMedia.hpp.
| std::time_t tgbotxx::InputPaidMediaVideo::duration {} |
Optional. Video duration in seconds.
Definition at line 99 of file InputPaidMedia.hpp.
| std::int32_t tgbotxx::InputPaidMediaVideo::height {} |
Optional. Video height.
Definition at line 96 of file InputPaidMedia.hpp.
| std::time_t tgbotxx::InputPaidMediaVideo::startTimestamp {} |
Optional. Start timestamp for the video.
Definition at line 90 of file InputPaidMedia.hpp.
| bool tgbotxx::InputPaidMediaVideo::supportsStreaming {} |
Optional. True if the uploaded video is suitable for streaming.
Definition at line 102 of file InputPaidMedia.hpp.
| std::string tgbotxx::InputPaidMediaVideo::thumbnail |
Optional. Thumbnail of the file sent.
Definition at line 84 of file InputPaidMedia.hpp.
| std::int32_t tgbotxx::InputPaidMediaVideo::width {} |
Optional. Video width.
Definition at line 93 of file InputPaidMedia.hpp.