tgbot-cpp
Loading...
Searching...
No Matches
InlineQueryResultVideo.h
Go to the documentation of this file.
1#ifndef TGBOT_INLINEQUERYRESULTVIDEO_H
2#define TGBOT_INLINEQUERYRESULTVIDEO_H
3
7
8#include <cstdint>
9#include <memory>
10#include <string>
11#include <vector>
12
13namespace TgBot {
14
25public:
26 static const std::string TYPE;
27
28 typedef std::shared_ptr<InlineQueryResultVideo> Ptr;
29
31 this->type = TYPE;
32 };
33
37 std::string videoUrl;
38
42 std::string mimeType;
43
47 std::string thumbnailUrl;
48
52 std::string title;
53
57 std::string caption;
58
63 std::string parseMode;
64
68 std::vector<MessageEntity::Ptr> captionEntities;
69
73 std::int32_t videoWidth;
74
78 std::int32_t videoHeight;
79
83 std::int32_t videoDuration;
84
88 std::string description;
89
95};
96}
97
98#endif //TGBOT_INLINEQUERYRESULTVIDEO_H
This object represents one result of an inline query.
std::string type
Type of the result.
Represents a link to a page containing an embedded video player or a video file. By default,...
std::shared_ptr< InlineQueryResultVideo > Ptr
std::int32_t videoDuration
Optional. Video duration in seconds.
std::string description
Optional. Short description of the result.
std::int32_t videoHeight
Optional. Video height.
std::string thumbnailUrl
URL of the thumbnail (jpeg only) for the video.
InputMessageContent::Ptr inputMessageContent
Optional. Content of the message to be sent instead of the video. This field is required if InlineQue...
std::string title
Title for the result.
std::string parseMode
Optional. Mode for parsing entities in the video caption. See https://core.telegram....
std::string mimeType
Mime type of the content of video url, “text/html” or “video/mp4”
std::string caption
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing.
std::int32_t videoWidth
Optional. Video width.
std::vector< MessageEntity::Ptr > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
std::string videoUrl
A valid URL for the embedded video player or video file.
std::shared_ptr< InputMessageContent > Ptr
Definition Api.h:40