tgbot-cpp
InlineQueryResultVenue.h
Go to the documentation of this file.
1 //
2 // Created by Konstantin Kukin on 27/12/16
3 //
4 
5 #ifndef TGBOT_INLINEQUERYRESULTVENUE_H
6 #define TGBOT_INLINEQUERYRESULTVENUE_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<InlineQueryResultVenue> 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 address;
46 
50  std::string foursquareId;
51 
55  std::string thumbUrl;
56 
60  int32_t thumbWidth;
61 
65  int32_t thumbHeight;
66 };
67 }
68 
69 #endif //TGBOT_INLINEQUERYRESULTVENUE_H
std::shared_ptr< InlineQueryResultVenue > Ptr
std::string type
Type of the result.
Definition: Api.h:49
float longitude
Longitude of the venue location in degrees.
std::string foursquareId
Optional. Foursquare identifier of the venue if known.
float latitude
Latitude of the venue location in degrees.
std::string address
Address of the venue.
This abstract class is base of all inline query results.
std::string thumbUrl
Optional. Url of the thumbnail for the result.
int32_t thumbWidth
Optional. Thumbnail width.
int32_t thumbHeight
Optinal. Thumbnail height.