tgbot-cpp
Loading...
Searching...
No Matches
InlineQueryResultGif.h
Go to the documentation of this file.
1#ifndef TGBOT_INLINEQUERYRESULTGIF_H
2#define TGBOT_INLINEQUERYRESULTGIF_H
3
7
8#include <cstdint>
9#include <string>
10#include <memory>
11#include <vector>
12
13namespace TgBot {
14
23public:
24 static const std::string TYPE;
25
26 typedef std::shared_ptr<InlineQueryResultGif> Ptr;
27
29 this->type = TYPE;
30 }
31
36 std::string gifUrl;
37
41 std::int32_t gifWidth;
42
46 std::int32_t gifHeight;
47
51 std::int32_t gifDuration;
52
56 std::string thumbnailUrl;
57
62 std::string thumbnailMimeType;
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_INLINEQUERYRESULTGIF_H
Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the use...
static const std::string TYPE
std::string parseMode
Optional. Mode for parsing entities in the caption. See https://core.telegram.org/bots/api#formatting...
std::vector< MessageEntity::Ptr > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::string title
Optional. Title for the result.
std::shared_ptr< InlineQueryResultGif > Ptr
std::string gifUrl
A valid URL for the GIF file. File size must not exceed 1MB.
std::int32_t gifHeight
Optional. Height of the GIF.
std::int32_t gifDuration
Optional. Duration of the GIF.
std::string thumbnailUrl
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
std::int32_t gifWidth
Optional. Width of the GIF.
InputMessageContent::Ptr inputMessageContent
Optional. Content of the message to be sent instead of the GIF animation.
std::string caption
Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing.
std::string thumbnailMimeType
Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”....
This object represents one result of an inline query.
std::string type
Type of the result.
std::shared_ptr< InputMessageContent > Ptr
Definition Api.h:40