tgbot-cpp
Loading...
Searching...
No Matches
InputMediaAnimation.h
Go to the documentation of this file.
1#ifndef TGBOT_INPUTMEDIAANIMATION_H
2#define TGBOT_INPUTMEDIAANIMATION_H
3
5
6#include <memory>
7#include <string>
8
9namespace TgBot {
10
17
18public:
19 static const std::string TYPE;
20
21 typedef std::shared_ptr<InputMediaAnimation> 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};
58}
59
60#endif //TGBOT_INPUTMEDIAANIMATION_H
Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
static const std::string TYPE
std::shared_ptr< InputMediaAnimation > Ptr
std::int32_t width
Optional. Animation width.
bool hasSpoiler
Optional. Pass True if the animation needs to be covered with a spoiler animation.
std::int32_t height
Optional. Animation height.
std::string thumb
Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supporte...
std::int32_t duration
Optional. Animation duration in seconds.
This abstract class is base of all input media.
Definition InputMedia.h:19
std::string type
Type of the result.
Definition InputMedia.h:30
Definition Api.h:39