tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::InlineQueryResultLocation Struct Reference

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>

Inheritance diagram for tgbotxx::InlineQueryResultLocation:
tgbotxx::InlineQueryResult

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< InputMessageContentinputMessageContent
 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< InlineKeyboardMarkupreplyMarkup
 Optional. Inline keyboard attached to the message. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ InlineQueryResultLocation() [1/2]

tgbotxx::InlineQueryResultLocation::InlineQueryResultLocation ( )
inline

Definition at line 646 of file InlineQueryResult.hpp.

◆ InlineQueryResultLocation() [2/2]

tgbotxx::InlineQueryResultLocation::InlineQueryResultLocation ( const nl::json &  json)
inlineexplicit

Definition at line 649 of file InlineQueryResult.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::InlineQueryResultLocation::fromJson ( const nl::json &  json)
inlineoverridevirtual

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 703 of file InlineQueryResult.hpp.

◆ toJson()

nl::json tgbotxx::InlineQueryResultLocation::toJson ( ) const
inlineoverridevirtual

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 687 of file InlineQueryResult.hpp.

Member Data Documentation

◆ heading

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.

◆ horizontalAccuracy

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.

◆ inputMessageContent

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.

◆ latitude

float tgbotxx::InlineQueryResultLocation::latitude {}

Location latitude in degrees.

Definition at line 654 of file InlineQueryResult.hpp.

◆ livePeriod

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.

◆ longitude

float tgbotxx::InlineQueryResultLocation::longitude {}

Location longitude in degrees.

Definition at line 657 of file InlineQueryResult.hpp.

◆ proximityAlertRadius

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.

◆ thumbnailHeight

std::int32_t tgbotxx::InlineQueryResultLocation::thumbnailHeight {}

Optional. Thumbnail height;.

Definition at line 685 of file InlineQueryResult.hpp.

◆ thumbnailUrl

std::string tgbotxx::InlineQueryResultLocation::thumbnailUrl

Optional. URL of the thumbnail (JPEG only) for the file.

Definition at line 679 of file InlineQueryResult.hpp.

◆ thumbnailWidth

std::int32_t tgbotxx::InlineQueryResultLocation::thumbnailWidth {}

Optional. Thumbnail width;.

Definition at line 682 of file InlineQueryResult.hpp.

◆ title

std::string tgbotxx::InlineQueryResultLocation::title

Location title.

Definition at line 660 of file InlineQueryResult.hpp.


The documentation for this struct was generated from the following file: