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
4
#include "
tgbot/types/InputMedia.h
"
5
#include "
tgbot/types/InputFile.h
"
6
7
#include <memory>
8
#include <string>
9
10
namespace
TgBot
{
11
17
class
InputMediaVideo
:
public
InputMedia
{
18
public
:
19
static
const
std::string
TYPE
;
20
21
typedef
std::shared_ptr<InputMediaVideo>
Ptr
;
22
23
InputMediaVideo
() {
24
this->
type
=
TYPE
;
25
}
26
36
std::string
thumbnail
;
37
41
std::int32_t
width
;
42
46
std::int32_t
height
;
47
51
std::int32_t
duration
;
52
56
bool
supportsStreaming
;
57
61
bool
hasSpoiler
;
62
};
63
}
64
65
#endif
//TGBOT_INPUTMEDIAVIDEO_H
InputFile.h
InputMedia.h
TgBot::InputMedia
This abstract class is base of all input media.
Definition
InputMedia.h:19
TgBot::InputMedia::type
std::string type
Type of the result.
Definition
InputMedia.h:30
TgBot::InputMediaVideo
Represents a video to be sent.
Definition
InputMediaVideo.h:17
TgBot::InputMediaVideo::hasSpoiler
bool hasSpoiler
Optional. Pass True if the video needs to be covered with a spoiler animation.
Definition
InputMediaVideo.h:61
TgBot::InputMediaVideo::Ptr
std::shared_ptr< InputMediaVideo > Ptr
Definition
InputMediaVideo.h:21
TgBot::InputMediaVideo::InputMediaVideo
InputMediaVideo()
Definition
InputMediaVideo.h:23
TgBot::InputMediaVideo::thumbnail
std::string thumbnail
Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supporte...
Definition
InputMediaVideo.h:36
TgBot::InputMediaVideo::TYPE
static const std::string TYPE
Definition
InputMediaVideo.h:19
TgBot::InputMediaVideo::height
std::int32_t height
Optional. Video height.
Definition
InputMediaVideo.h:46
TgBot::InputMediaVideo::duration
std::int32_t duration
Optional. Video duration in seconds.
Definition
InputMediaVideo.h:51
TgBot::InputMediaVideo::supportsStreaming
bool supportsStreaming
Optional. Pass True if the uploaded video is suitable for streaming.
Definition
InputMediaVideo.h:56
TgBot::InputMediaVideo::width
std::int32_t width
Optional. Video width.
Definition
InputMediaVideo.h:41
TgBot
Definition
Api.h:40
include
tgbot
types
InputMediaVideo.h
Generated on Tue Jun 11 2024 00:46:35 for tgbot-cpp by
1.11.0