|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Describes a video to post as a story https://core.telegram.org/bots/api#inputstorycontentvideo. More...
#include <InputStoryContent.hpp>
Public Member Functions | |
| InputStoryContentVideo () | |
| InputStoryContentVideo (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::InputStoryContent | |
| InputStoryContent ()=default | |
| InputStoryContent (const nl::json &json) | |
| virtual | ~InputStoryContent ()=default |
Public Attributes | |
| std::string | video |
| The video to post as a story. Must be 720x1280, H.265, streamable, <= 30MB. Can't be reused. | |
| double | duration {0.0} |
| Optional. Precise duration of the video in seconds; 0-60. | |
| double | coverFrameTimestamp {0.0} |
| Optional. Timestamp in seconds of the frame that will be used as the static cover for the story. Defaults to 0.0. | |
| bool | isAnimation {false} |
| Optional. True if the video has no sound. | |
Public Attributes inherited from tgbotxx::InputStoryContent | |
| std::string | type |
| Type of the story content. | |
Describes a video to post as a story https://core.telegram.org/bots/api#inputstorycontentvideo.
Definition at line 64 of file InputStoryContent.hpp.
|
inline |
Definition at line 65 of file InputStoryContent.hpp.
|
inlineexplicit |
Definition at line 68 of file InputStoryContent.hpp.
|
inlineoverridevirtual |
Deserializes this object from JSON.
Reimplemented from tgbotxx::InputStoryContent.
Definition at line 96 of file InputStoryContent.hpp.
|
inlineoverridevirtual |
Serializes this object to JSON.
Reimplemented from tgbotxx::InputStoryContent.
Definition at line 86 of file InputStoryContent.hpp.
| double tgbotxx::InputStoryContentVideo::coverFrameTimestamp {0.0} |
Optional. Timestamp in seconds of the frame that will be used as the static cover for the story. Defaults to 0.0.
Definition at line 79 of file InputStoryContent.hpp.
| double tgbotxx::InputStoryContentVideo::duration {0.0} |
Optional. Precise duration of the video in seconds; 0-60.
Definition at line 76 of file InputStoryContent.hpp.
| bool tgbotxx::InputStoryContentVideo::isAnimation {false} |
Optional. True if the video has no sound.
Definition at line 82 of file InputStoryContent.hpp.
| std::string tgbotxx::InputStoryContentVideo::video |
The video to post as a story. Must be 720x1280, H.265, streamable, <= 30MB. Can't be reused.
Definition at line 73 of file InputStoryContent.hpp.