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 <string>
9#include <memory>
10
11namespace TgBot {
12
21public:
22 static const std::string TYPE;
23
24 typedef std::shared_ptr<InlineQueryResultLocation> Ptr;
25
27 this->type = TYPE;
28 }
29
33 float latitude;
34
38 float longitude;
39
43 std::string title;
44
49
53 std::int32_t livePeriod;
54
59 std::int32_t heading;
60
66
71
75 std::string thumbUrl;
76
80 std::int32_t thumbWidth;
81
85 std::int32_t thumbHeight;
86};
87}
88
89#endif //TGBOT_INLINEQUERYRESULTLOCATION_H
This abstract class is base of all inline query results.
std::string type
Type of the result.
Represents a location on a map. By default, the location will be sent by the user....
std::int32_t proximityAlertRadius
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat ...
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 thumbHeight
Optinal. Thumbnail height.
std::shared_ptr< InlineQueryResultLocation > Ptr
std::int32_t thumbWidth
Optional. Thumbnail width.
float horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
std::string thumbUrl
Optional. Url of the thumbnail for the result.
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:39