tgbot-cpp
InlineQueryResultPhoto.h
Go to the documentation of this file.
1 //
2 // Created by Andrea Giove on 26/03/16.
3 //
4 
5 #ifndef TGBOT_INLINEQUERYRESULTPHOTO_H
6 #define TGBOT_INLINEQUERYRESULTPHOTO_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<InlineQueryResultPhoto> Ptr;
25 
27  this->type = TYPE;
28  this->photoWidth = 0;
29  this->photoHeight = 0;
30  }
31 
35  std::string photoUrl;
36 
40  std::string thumbUrl;
41 
45  int32_t photoWidth;
46 
50  int32_t photoHeight;
51 
55  std::string description;
56 };
57 }
58 
59 #endif //TGBOT_INLINEQUERYRESULTPHOTO_H
std::string type
Type of the result.
Definition: Api.h:49
int32_t photoHeight
Optional. Height of the photo.
std::string description
Optional. Short description of the result.
std::string thumbUrl
URL of the thumbnail for the photo.
This abstract class is base of all inline query results.
Represents a link to a photo.
std::shared_ptr< InlineQueryResultPhoto > Ptr
int32_t photoWidth
Optional. Width of the photo.
std::string photoUrl
A valid URL of the photo.