tgbot-cpp
InlineQueryResultLocation.h
Go to the documentation of this file.
1 //
2 // Created by Konstantin Kukin on 27/12/16
3 //
4 
5 #ifndef TGBOT_INLINEQUERYRESULTLOCATION_H
6 #define TGBOT_INLINEQUERYRESULTLOCATION_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<InlineQueryResultLocation> Ptr;
25 
27  this->type = TYPE;
28  this->thumbHeight = 0;
29  this->thumbWidth = 0;
30  }
31 
35  float latitude;
36 
40  float longitude;
41 
45  std::string thumbUrl;
46 
50  int32_t thumbWidth;
51 
55  int32_t thumbHeight;
56 };
57 }
58 
59 #endif //TGBOT_INLINEQUERYRESULTLOCATION_H
std::string type
Type of the result.
Definition: Api.h:49
int32_t thumbWidth
Optional. Thumbnail width.
int32_t thumbHeight
Optinal. Thumbnail height.
std::shared_ptr< InlineQueryResultLocation > Ptr
float latitude
Location latitude in degrees.
Represents a location on a map.
std::string thumbUrl
Optional. Url of the thumbnail for the result.
float longitude
Location longitude in degrees.
This abstract class is base of all inline query results.