tgbot-cpp
Loading...
Searching...
No Matches
InlineQueryResultMpeg4Gif.h
Go to the documentation of this file.
1#ifndef TGBOT_INLINEQUERYRESULTMPEG4GIF_H
2#define TGBOT_INLINEQUERYRESULTMPEG4GIF_H
3
7
8#include <cstdint>
9#include <memory>
10#include <string>
11#include <vector>
12
13namespace TgBot {
14
23public:
24 static const std::string TYPE;
25
26 typedef std::shared_ptr<InlineQueryResultMpeg4Gif> Ptr;
27
29 this->type = TYPE;
30 }
31
36 std::string mpeg4Url;
37
41 std::int32_t mpeg4Width;
42
46 std::int32_t mpeg4Height;
47
51 std::int32_t mpeg4Duration;
52
56 std::string thumbUrl;
57
62 std::string thumbMimeType;
63
67 std::string title;
68
72 std::string caption;
73
78 std::string parseMode;
79
83 std::vector<MessageEntity::Ptr> captionEntities;
84
89};
90}
91
92#endif //TGBOT_INLINEQUERYRESULTMPEG4GIF_H
This abstract class is base of all inline query results.
std::string type
Type of the result.
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default,...
InputMessageContent::Ptr inputMessageContent
Optional. Content of the message to be sent instead of the video animation.
std::string title
Optional. Title for the result.
std::string mpeg4Url
A valid URL for the MP4 file. File size must not exceed 1MB.
std::vector< MessageEntity::Ptr > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::string parseMode
Optional. Mode for parsing entities in the caption. See https://core.telegram.org/bots/api#formatting...
std::string caption
Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing.
std::int32_t mpeg4Duration
Optional. Video duration.
std::string thumbMimeType
Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”....
std::string thumbUrl
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
std::shared_ptr< InlineQueryResultMpeg4Gif > Ptr
std::int32_t mpeg4Height
Optional. Video height.
std::int32_t mpeg4Width
Optional. Video width.
std::shared_ptr< InputMessageContent > Ptr
Definition Api.h:39