tgbot-cpp
Loading...
Searching...
No Matches
InputLocationMessageContent.h
Go to the documentation of this file.
1#ifndef TGBOT_INPUTLOCATIONMESSAGECONTENT_H
2#define TGBOT_INPUTLOCATIONMESSAGECONTENT_H
3
5
6#include <memory>
7
8namespace TgBot {
9
16public:
17 static const std::string TYPE;
18
19 typedef std::shared_ptr<InputLocationMessageContent> Ptr;
20
24
28 float latitude;
29
33 float longitude;
34
39
43 std::int32_t livePeriod;
44
49 std::int32_t heading;
50
56};
57}
58
59#endif //TGBOT_INPUTLOCATIONMESSAGECONTENT_H
Represents the content of a location message to be sent as the result of an inline query.
float horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
float latitude
Latitude of the location in degrees.
float longitude
Longitude of the location in degrees.
std::int32_t livePeriod
Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
std::shared_ptr< InputLocationMessageContent > Ptr
std::int32_t heading
Optional. For live locations, a direction in which the user is moving, in degrees....
std::int32_t proximityAlertRadius
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat ...
This abstract class is base of all message contents.
std::string type
Type of the content.
Definition Api.h:39