tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the location. More...
#include <InlineQueryResult.hpp>
Public Member Functions | |
InlineQueryResultLocation () | |
InlineQueryResultLocation (const nl::json &json) | |
nl::json | toJson () const override |
void | fromJson (const nl::json &json) override |
Public Member Functions inherited from tgbotxx::InlineQueryResult | |
InlineQueryResult ()=default | |
InlineQueryResult (const nl::json &json) | |
Public Attributes | |
float | latitude {} |
Location latitude in degrees. More... | |
float | longitude {} |
Location longitude in degrees. More... | |
std::string | title |
Location title. More... | |
float | horizontalAccuracy {} |
Optional. The radius of uncertainty for the location, measured in meters; 0-1500. More... | |
std::int32_t | livePeriod {} |
Optional. Period in seconds for which the location can be updated, should be between 60 and 86400. More... | |
std::int32_t | heading {} |
Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified. More... | |
std::int32_t | proximityAlertRadius {} |
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified. More... | |
Ptr< InputMessageContent > | inputMessageContent |
Optional. Content of the message to be sent instead of the location. More... | |
std::string | thumbnailUrl |
Optional. URL of the thumbnail (JPEG only) for the file. More... | |
std::int32_t | thumbnailWidth {} |
Optional. Thumbnail width;. More... | |
std::int32_t | thumbnailHeight {} |
Optional. Thumbnail height;. More... | |
Public Attributes inherited from tgbotxx::InlineQueryResult | |
std::string | type |
Type of the result. More... | |
std::string | id |
Unique identifier for this result, 1-64 bytes. More... | |
Ptr< InlineKeyboardMarkup > | replyMarkup |
Optional. Inline keyboard attached to the message. More... | |
Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the location.
Definition at line 645 of file InlineQueryResult.hpp.
|
inline |
Definition at line 646 of file InlineQueryResult.hpp.
|
inlineexplicit |
Definition at line 649 of file InlineQueryResult.hpp.
|
inlineoverridevirtual |
Reimplemented from tgbotxx::InlineQueryResult.
Definition at line 703 of file InlineQueryResult.hpp.
|
inlineoverridevirtual |
Reimplemented from tgbotxx::InlineQueryResult.
Definition at line 687 of file InlineQueryResult.hpp.
std::int32_t tgbotxx::InlineQueryResultLocation::heading {} |
Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
Definition at line 669 of file InlineQueryResult.hpp.
float tgbotxx::InlineQueryResultLocation::horizontalAccuracy {} |
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Definition at line 663 of file InlineQueryResult.hpp.
Ptr<InputMessageContent> tgbotxx::InlineQueryResultLocation::inputMessageContent |
Optional. Content of the message to be sent instead of the location.
Definition at line 676 of file InlineQueryResult.hpp.
float tgbotxx::InlineQueryResultLocation::latitude {} |
Location latitude in degrees.
Definition at line 654 of file InlineQueryResult.hpp.
std::int32_t tgbotxx::InlineQueryResultLocation::livePeriod {} |
Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
Definition at line 666 of file InlineQueryResult.hpp.
float tgbotxx::InlineQueryResultLocation::longitude {} |
Location longitude in degrees.
Definition at line 657 of file InlineQueryResult.hpp.
std::int32_t tgbotxx::InlineQueryResultLocation::proximityAlertRadius {} |
Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
Definition at line 673 of file InlineQueryResult.hpp.
std::int32_t tgbotxx::InlineQueryResultLocation::thumbnailHeight {} |
Optional. Thumbnail height;.
Definition at line 685 of file InlineQueryResult.hpp.
std::string tgbotxx::InlineQueryResultLocation::thumbnailUrl |
Optional. URL of the thumbnail (JPEG only) for the file.
Definition at line 679 of file InlineQueryResult.hpp.
std::int32_t tgbotxx::InlineQueryResultLocation::thumbnailWidth {} |
Optional. Thumbnail width;.
Definition at line 682 of file InlineQueryResult.hpp.
std::string tgbotxx::InlineQueryResultLocation::title |
Location title.
Definition at line 660 of file InlineQueryResult.hpp.