blob: cf6aed4240ddcad8ba37aaebda2c4f8141d823fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
#ifndef TGBOT_INLINEQUERYRESULTMPEG4GIF_H
#define TGBOT_INLINEQUERYRESULTMPEG4GIF_H
#include "tgbot/types/InlineQueryResult.h"
#include "tgbot/types/MessageEntity.h"
#include "tgbot/types/InputMessageContent.h"
#include <cstdint>
#include <memory>
#include <string>
#include <vector>
namespace TgBot {
/**
* @brief Represents a link to a video animation (H.264/MPEG-4 AVC video without sound).
* By default, this animated MPEG-4 file will be sent by the user with optional caption.
* Alternatively, you can use inputMessageContent to send a message with the specified content instead of the animation.
*
* @ingroup types
*/
class InlineQueryResultMpeg4Gif : public InlineQueryResult {
public:
static const std::string TYPE;
typedef std::shared_ptr<InlineQueryResultMpeg4Gif> Ptr;
InlineQueryResultMpeg4Gif() {
this->type = TYPE;
}
/**
* @brief A valid URL for the MP4 file.
* File size must not exceed 1MB
*/
std::string mpeg4Url;
/**
* @brief Optional. Video width
*/
std::int32_t mpeg4Width;
/**
* @brief Optional. Video height
*/
std::int32_t mpeg4Height;
/**
* @brief Optional. Video duration
*/
std::int32_t mpeg4Duration;
/**
* @brief URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result
*/
std::string thumbnailUrl;
/**
* @brief Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”.
* Defaults to “image/jpeg”
*/
std::string thumbnailMimeType;
/**
* @brief Optional. Title for the result
*/
std::string title;
/**
* @brief Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing
*/
std::string caption;
/**
* @brief Optional. Mode for parsing entities in the caption.
* See https://core.telegram.org/bots/api#formatting-options for more details.
*/
std::string parseMode;
/**
* @brief Optional. List of special entities that appear in the caption, which can be specified instead of parseMode
*/
std::vector<MessageEntity::Ptr> captionEntities;
/**
* @brief Optional. Content of the message to be sent instead of the video animation
*/
InputMessageContent::Ptr inputMessageContent;
};
}
#endif //TGBOT_INLINEQUERYRESULTMPEG4GIF_H
|