tgbot-cpp
Loading...
Searching...
No Matches
InlineQueryResultLocation.h
Go to the documentation of this file.
1#ifndef TGBOT_INLINEQUERYRESULTLOCATION_H
2#define TGBOT_INLINEQUERYRESULTLOCATION_H
3
6
7#include <cstdint>
8#include <memory>
9#include <string>
10
11namespace TgBot {
12
22
23public:
24 static const std::string TYPE;
25
26 typedef std::shared_ptr<InlineQueryResultLocation> Ptr;
27
29 this->type = TYPE;
30 }
31
35 float latitude;
36
40 float longitude;
41
45 std::string title;
46
51
55 std::int32_t livePeriod;
56
62 std::int32_t heading;
63
70
75
79 std::string thumbnailUrl;
80
84 std::int32_t thumbnailWidth;
85
89 std::int32_t thumbnailHeight;
90};
91}
92
93#endif //TGBOT_INLINEQUERYRESULTLOCATION_H
This object represents one result of an inline query.
std::string type
Type of the result.
Represents a location on a map.
std::int32_t proximityAlertRadius
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat ...
std::int32_t thumbnailWidth
Optional. Thumbnail width.
std::int32_t heading
Optional. For live locations, a direction in which the user is moving, in degrees.
float longitude
Location longitude in degrees.
std::int32_t livePeriod
Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
std::int32_t thumbnailHeight
Optional. Thumbnail height.
std::shared_ptr< InlineQueryResultLocation > Ptr
std::string thumbnailUrl
Optional. Url of the thumbnail for the result.
float horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
float latitude
Location latitude in degrees.
InputMessageContent::Ptr inputMessageContent
Optional. Content of the message to be sent instead of the location.
std::shared_ptr< InputMessageContent > Ptr
Definition Api.h:40