tgbot-cpp
InlineQueryResultGif.h
Go to the documentation of this file.
1 //
2 // Created by Andrea Giove on 27/03/16.
3 //
4 
5 #ifndef TGBOT_INLINEQUERYRESULTGIF_H
6 #define TGBOT_INLINEQUERYRESULTGIF_H
7 
8 #include <string>
9 #include <memory>
10 
12 
13 namespace TgBot {
14 
21 public:
22  static const std::string TYPE;
23 
24  typedef std::shared_ptr<InlineQueryResultGif> Ptr;
25 
27  this->type = TYPE;
28  this->gifWidth = 0;
29  this->gifHeight = 0;
30  }
31 
35  std::string gifUrl;
36 
40  int32_t gifWidth;
41 
45  int32_t gifHeight;
46 
50  int32_t gifDuration;
51 
55  std::string thumbUrl;
56 
57 };
58 }
59 
60 #endif //TGBOT_INLINEQUERYRESULTGIF_H
int32_t gifWidth
Optional. Width of the GIF.
std::shared_ptr< InlineQueryResultGif > Ptr
std::string type
Type of the result.
int32_t gifDuration
Optional. Duration of the GIF.
Definition: Api.h:49
int32_t gifHeight
Optional. Height of the GIF.
std::string gifUrl
A valid URL for the GIF file.
std::string thumbUrl
URL of the static thumbnail for the result (jpeg or gif)
Represents a link to an animated GIF file.
static const std::string TYPE
This abstract class is base of all inline query results.