tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
Represents a video to be sent. https://core.telegram.org/bots/api#inputmediavideo. More...
#include <InputMedia.hpp>
Public Member Functions | |
InputMediaVideo () | |
InputMediaVideo (const nl::json &json) | |
nl::json | toJson () const override |
Serializes this object to JSON. More... | |
void | fromJson (const nl::json &json) override |
Deserializes this object from JSON. More... | |
Public Member Functions inherited from tgbotxx::InputMedia | |
InputMedia ()=default | |
InputMedia (const nl::json &json) | |
Public Attributes | |
std::string | thumbnail |
Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files » https://core.telegram.org/bots/api#sending-files. More... | |
std::int32_t | width {} |
Optional. Video width. More... | |
std::int32_t | height {} |
Optional. Video height. More... | |
std::int32_t | duration {} |
Optional. Video duration in seconds. More... | |
bool | supportsStreaming {} |
Optional. Pass True if the uploaded video is suitable for streaming. More... | |
bool | hasSpoiler {} |
Optional. Pass True if the animation needs to be covered with a spoiler animation. More... | |
Public Attributes inherited from tgbotxx::InputMedia | |
std::string | type |
Type of the result. More... | |
std::variant< cpr::File, std::string > | media {""} |
File to send. More... | |
std::string | caption |
Optional. Caption of the media to be sent, 0-1024 characters after entities parsing. More... | |
std::string | parseMode |
Optional. Mode for parsing entities in the media caption. See https://core.telegram.org/bots/api#formatting-options for more details. More... | |
std::vector< Ptr< MessageEntity > > | captionEntities |
Optional. List of special entities that appear in the caption, which can be specified instead of parseMode. More... | |
Represents a video to be sent. https://core.telegram.org/bots/api#inputmediavideo.
Definition at line 231 of file InputMedia.hpp.
|
inline |
Definition at line 232 of file InputMedia.hpp.
|
inlineexplicit |
Definition at line 235 of file InputMedia.hpp.
|
inlineoverridevirtual |
Deserializes this object from JSON.
Reimplemented from tgbotxx::InputMedia.
Definition at line 272 of file InputMedia.hpp.
|
inlineoverridevirtual |
Serializes this object to JSON.
Reimplemented from tgbotxx::InputMedia.
Definition at line 262 of file InputMedia.hpp.
std::int32_t tgbotxx::InputMediaVideo::duration {} |
Optional. Video duration in seconds.
Definition at line 253 of file InputMedia.hpp.
bool tgbotxx::InputMediaVideo::hasSpoiler {} |
Optional. Pass True if the animation needs to be covered with a spoiler animation.
Definition at line 259 of file InputMedia.hpp.
std::int32_t tgbotxx::InputMediaVideo::height {} |
Optional. Video height.
Definition at line 250 of file InputMedia.hpp.
bool tgbotxx::InputMediaVideo::supportsStreaming {} |
Optional. Pass True if the uploaded video is suitable for streaming.
Definition at line 256 of file InputMedia.hpp.
std::string tgbotxx::InputMediaVideo::thumbnail |
Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files » https://core.telegram.org/bots/api#sending-files.
Definition at line 244 of file InputMedia.hpp.
std::int32_t tgbotxx::InputMediaVideo::width {} |
Optional. Video width.
Definition at line 247 of file InputMedia.hpp.