tgbot-cpp
Loading...
Searching...
No Matches
InputMediaVideo.h
Go to the documentation of this file.
1#ifndef TGBOT_INPUTMEDIAVIDEO_H
2#define TGBOT_INPUTMEDIAVIDEO_H
3
6
7#include <memory>
8#include <string>
9
10namespace TgBot {
11
18public:
19 static const std::string TYPE;
20
21 typedef std::shared_ptr<InputMediaVideo> Ptr;
22
24 this->type = TYPE;
25 }
26
36 std::string thumb;
37
41 std::int32_t width;
42
46 std::int32_t height;
47
51 std::int32_t duration;
52
57
62};
63}
64
65#endif //TGBOT_INPUTMEDIAVIDEO_H
This abstract class is base of all input media.
Definition InputMedia.h:19
std::string type
Type of the result.
Definition InputMedia.h:30
Represents a video to be sent.
bool hasSpoiler
Optional. Pass True if the video needs to be covered with a spoiler animation.
std::shared_ptr< InputMediaVideo > Ptr
std::string thumb
Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supporte...
static const std::string TYPE
std::int32_t height
Optional. Video height.
std::int32_t duration
Optional. Video duration in seconds.
bool supportsStreaming
Optional. Pass True if the uploaded video is suitable for streaming.
std::int32_t width
Optional. Video width.
Definition Api.h:39