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
4
#include "
tgbot/types/InputMedia.h
"
5
6
#include <memory>
7
#include <string>
8
9
namespace
TgBot
{
10
16
class
InputMediaAnimation
:
public
InputMedia
{
17
18
public
:
19
static
const
std::string
TYPE
;
20
21
typedef
std::shared_ptr<InputMediaAnimation>
Ptr
;
22
23
InputMediaAnimation
() {
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
hasSpoiler
;
57
};
58
}
59
60
#endif
//TGBOT_INPUTMEDIAANIMATION_H
InputMedia.h
TgBot::InputMediaAnimation
Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
Definition
InputMediaAnimation.h:16
TgBot::InputMediaAnimation::TYPE
static const std::string TYPE
Definition
InputMediaAnimation.h:19
TgBot::InputMediaAnimation::Ptr
std::shared_ptr< InputMediaAnimation > Ptr
Definition
InputMediaAnimation.h:21
TgBot::InputMediaAnimation::width
std::int32_t width
Optional. Animation width.
Definition
InputMediaAnimation.h:41
TgBot::InputMediaAnimation::hasSpoiler
bool hasSpoiler
Optional. Pass True if the animation needs to be covered with a spoiler animation.
Definition
InputMediaAnimation.h:56
TgBot::InputMediaAnimation::height
std::int32_t height
Optional. Animation height.
Definition
InputMediaAnimation.h:46
TgBot::InputMediaAnimation::duration
std::int32_t duration
Optional. Animation duration in seconds.
Definition
InputMediaAnimation.h:51
TgBot::InputMediaAnimation::InputMediaAnimation
InputMediaAnimation()
Definition
InputMediaAnimation.h:23
TgBot::InputMediaAnimation::thumbnail
std::string thumbnail
Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supporte...
Definition
InputMediaAnimation.h:36
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
Definition
Api.h:40
include
tgbot
types
InputMediaAnimation.h
Generated on Tue Jun 11 2024 00:46:35 for tgbot-cpp by
1.11.0