|
tgbotxx 1.1.9.2
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) | |
| virtual | ~InlineQueryResult ()=default |
Public Attributes | |
| float | latitude {} |
| Location latitude in degrees. | |
| float | longitude {} |
| Location longitude in degrees. | |
| std::string | title |
| Location title. | |
| float | horizontalAccuracy {} |
| Optional. The radius of uncertainty for the location, measured in meters; 0-1500. | |
| std::int32_t | livePeriod {} |
| Optional. Period in seconds for which the location can be updated, should be between 60 and 86400. | |
| 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. | |
| 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. | |
| Ptr< InputMessageContent > | inputMessageContent |
| Optional. Content of the message to be sent instead of the location. | |
| std::string | thumbnailUrl |
| Optional. URL of the thumbnail (JPEG only) for the file. | |
| std::int32_t | thumbnailWidth {} |
| Optional. Thumbnail width;. | |
| std::int32_t | thumbnailHeight {} |
| Optional. Thumbnail height;. | |
Public Attributes inherited from tgbotxx::InlineQueryResult | |
| std::string | type |
| Type of the result. | |
| std::string | id |
| Unique identifier for this result, 1-64 bytes. | |
| Ptr< InlineKeyboardMarkup > | replyMarkup |
| Optional. Inline keyboard attached to the message. | |
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 646 of file InlineQueryResult.hpp.
|
inline |
Definition at line 647 of file InlineQueryResult.hpp.
|
inlineexplicit |
Definition at line 650 of file InlineQueryResult.hpp.
|
inlineoverridevirtual |
Reimplemented from tgbotxx::InlineQueryResult.
Definition at line 704 of file InlineQueryResult.hpp.
|
inlineoverridevirtual |
Reimplemented from tgbotxx::InlineQueryResult.
Definition at line 688 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 670 of file InlineQueryResult.hpp.
| float tgbotxx::InlineQueryResultLocation::horizontalAccuracy {} |
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Definition at line 664 of file InlineQueryResult.hpp.
| Ptr<InputMessageContent> tgbotxx::InlineQueryResultLocation::inputMessageContent |
Optional. Content of the message to be sent instead of the location.
Definition at line 677 of file InlineQueryResult.hpp.
| float tgbotxx::InlineQueryResultLocation::latitude {} |
Location latitude in degrees.
Definition at line 655 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 667 of file InlineQueryResult.hpp.
| float tgbotxx::InlineQueryResultLocation::longitude {} |
Location longitude in degrees.
Definition at line 658 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 674 of file InlineQueryResult.hpp.
| std::int32_t tgbotxx::InlineQueryResultLocation::thumbnailHeight {} |
Optional. Thumbnail height;.
Definition at line 686 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultLocation::thumbnailUrl |
Optional. URL of the thumbnail (JPEG only) for the file.
Definition at line 680 of file InlineQueryResult.hpp.
| std::int32_t tgbotxx::InlineQueryResultLocation::thumbnailWidth {} |
Optional. Thumbnail width;.
Definition at line 683 of file InlineQueryResult.hpp.
| std::string tgbotxx::InlineQueryResultLocation::title |
Location title.
Definition at line 661 of file InlineQueryResult.hpp.