Describes a video to post as a story.
More...
#include <Types.h>
|
| std::string | type { TYPE } |
| | Type of the content, must be video.
|
| std::string | video { } |
| | The video to post as a story. The video must be of the size 720x1280, streamable, encoded with H.265 codec, with key frames added each second in the MPEG4 format, and must not exceed 30 MB. The video can't be reused and can only be uploaded as a new file, so you can pass “attach://<file_attach_name>” if the video was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »
|
| std::optional< double > | duration { } |
| | Optional. Precise duration of the video in seconds; 0-60.
|
| std::optional< double > | coverFrameTimestamp { } |
| | Optional. Timestamp in seconds of the frame that will be used as the static cover for the story. Defaults to 0.0.
|
| std::optional< bool > | isAnimation { } |
| | Optional. Pass True if the video has no sound.
|
Describes a video to post as a story.
Definition at line 7734 of file Types.h.
◆ Ptr
◆ coverFrameTimestamp
| std::optional<double> TgBot::InputStoryContentVideo::coverFrameTimestamp { } |
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 7759 of file Types.h.
◆ duration
| std::optional<double> TgBot::InputStoryContentVideo::duration { } |
Optional. Precise duration of the video in seconds; 0-60.
Definition at line 7754 of file Types.h.
◆ isAnimation
| std::optional<bool> TgBot::InputStoryContentVideo::isAnimation { } |
Optional. Pass True if the video has no sound.
Definition at line 7763 of file Types.h.
◆ TYPE
| TGBOT_API const std::string TgBot::InputStoryContentVideo::TYPE |
|
static |
◆ type
| std::string TgBot::InputStoryContentVideo::type { TYPE } |
Type of the content, must be video.
Definition at line 7742 of file Types.h.
◆ video
| std::string TgBot::InputStoryContentVideo::video { } |
The video to post as a story. The video must be of the size 720x1280, streamable, encoded with H.265 codec, with key frames added each second in the MPEG4 format, and must not exceed 30 MB. The video can't be reused and can only be uploaded as a new file, so you can pass “attach://<file_attach_name>” if the video was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »
Definition at line 7750 of file Types.h.
The documentation for this struct was generated from the following file: