tgbot-cpp
Loading...
Searching...
No Matches
TgBot::InputStoryContentVideo Struct Reference

Describes a video to post as a story. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<InputStoryContentVideo>

Public Attributes

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.

Static Public Attributes

static TGBOT_API const std::string TYPE

Detailed Description

Describes a video to post as a story.

Definition at line 8060 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 8061 of file Types.h.

Member Data Documentation

◆ 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 8088 of file Types.h.

◆ duration

std::optional<double> TgBot::InputStoryContentVideo::duration { }

Optional. Precise duration of the video in seconds; 0-60.

Definition at line 8082 of file Types.h.

◆ isAnimation

std::optional<bool> TgBot::InputStoryContentVideo::isAnimation { }

Optional. Pass True if the video has no sound.

Definition at line 8093 of file Types.h.

◆ TYPE

TGBOT_API const std::string TgBot::InputStoryContentVideo::TYPE
static

Definition at line 8063 of file Types.h.

◆ type

std::string TgBot::InputStoryContentVideo::type { TYPE }

Type of the content, must be video.

Definition at line 8068 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 8077 of file Types.h.


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