tgbot-cpp
InlineQueryResultVideo.h
Go to the documentation of this file.
1 //
2 // Created by Andrea Giove on 27/03/16.
3 //
4 
5 #ifndef TGBOT_INLINEQUERYRESULTVIDEO_H
6 #define TGBOT_INLINEQUERYRESULTVIDEO_H
7 
8 namespace TgBot {
9 
16 public:
17  static const std::string TYPE;
18 
19  typedef std::shared_ptr<InlineQueryResultVideo> Ptr;
20 
22  this->type = TYPE;
23  this->videoWidth = 0;
24  this->videoHeight = 0;
25  this->videoDuration = 0;
26  };
27 
31  std::string videoUrl;
32 
36  std::string mimeType;
37 
41  std::string thumbUrl;
42 
46  int32_t videoWidth;
47 
51  int32_t videoHeight;
52 
56  int32_t videoDuration;
57 
61  std::string description;
62 
63 };
64 }
65 
66 #endif //TGBOT_INLINEQUERYRESULTVIDEO_H
Represents link to a page containing an embedded video player or a video file.
std::string type
Type of the result.
Definition: Api.h:49
int32_t videoHeight
Optional. Video height.
std::shared_ptr< InlineQueryResultVideo > Ptr
int32_t videoDuration
Optional. Video duration.
std::string description
Optional. Short description of the result.
This abstract class is base of all inline query results.
std::string videoUrl
A valid URL for the embedded video player or video file.
std::string thumbUrl
URL of the thumbnail (jpeg only) for the video.
std::string mimeType
Mime type of the content of video url, "text/html" or "video/mp4".
int32_t videoWidth
Optional. Video width.