tgbot-cpp
Loading...
Searching...
No Matches
TgBot::InlineQueryResultLocation Class Reference

Represents a location on a map. More...

#include <InlineQueryResultLocation.h>

Inheritance diagram for TgBot::InlineQueryResultLocation:
TgBot::InlineQueryResult

Public Types

typedef std::shared_ptr< InlineQueryResultLocationPtr
 
- Public Types inherited from TgBot::InlineQueryResult
typedef std::shared_ptr< InlineQueryResultPtr
 

Public Member Functions

 InlineQueryResultLocation ()
 
- Public Member Functions inherited from TgBot::InlineQueryResult
 InlineQueryResult ()
 
virtual ~InlineQueryResult ()
 

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.
 
std::int32_t proximityAlertRadius
 Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters.
 
InputMessageContent::Ptr inputMessageContent
 Optional. Content of the message to be sent instead of the location.
 
std::string thumbnailUrl
 Optional. Url of the thumbnail for the result.
 
std::int32_t thumbnailWidth
 Optional. Thumbnail width.
 
std::int32_t thumbnailHeight
 Optional. Thumbnail height.
 
- Public Attributes inherited from TgBot::InlineQueryResult
std::string type
 Type of the result.
 
std::string id
 Unique identifier for this result, 1-64 bytes.
 
InlineKeyboardMarkup::Ptr replyMarkup
 Optional. Inline keyboard attached to the message.
 

Static Public Attributes

static const std::string TYPE
 

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 21 of file InlineQueryResultLocation.h.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ InlineQueryResultLocation()

TgBot::InlineQueryResultLocation::InlineQueryResultLocation ( )
inline

Definition at line 28 of file InlineQueryResultLocation.h.

Member Data Documentation

◆ heading

std::int32_t TgBot::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 62 of file InlineQueryResultLocation.h.

◆ horizontalAccuracy

float TgBot::InlineQueryResultLocation::horizontalAccuracy

Optional. The radius of uncertainty for the location, measured in meters; 0-1500.

Definition at line 50 of file InlineQueryResultLocation.h.

◆ inputMessageContent

InputMessageContent::Ptr TgBot::InlineQueryResultLocation::inputMessageContent

Optional. Content of the message to be sent instead of the location.

Definition at line 74 of file InlineQueryResultLocation.h.

◆ latitude

float TgBot::InlineQueryResultLocation::latitude

Location latitude in degrees.

Definition at line 35 of file InlineQueryResultLocation.h.

◆ livePeriod

std::int32_t TgBot::InlineQueryResultLocation::livePeriod

Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.

Definition at line 55 of file InlineQueryResultLocation.h.

◆ longitude

float TgBot::InlineQueryResultLocation::longitude

Location longitude in degrees.

Definition at line 40 of file InlineQueryResultLocation.h.

◆ proximityAlertRadius

std::int32_t TgBot::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 69 of file InlineQueryResultLocation.h.

◆ thumbnailHeight

std::int32_t TgBot::InlineQueryResultLocation::thumbnailHeight

Optional. Thumbnail height.

Definition at line 89 of file InlineQueryResultLocation.h.

◆ thumbnailUrl

std::string TgBot::InlineQueryResultLocation::thumbnailUrl

Optional. Url of the thumbnail for the result.

Definition at line 79 of file InlineQueryResultLocation.h.

◆ thumbnailWidth

std::int32_t TgBot::InlineQueryResultLocation::thumbnailWidth

Optional. Thumbnail width.

Definition at line 84 of file InlineQueryResultLocation.h.

◆ title

std::string TgBot::InlineQueryResultLocation::title

Location title.

Definition at line 45 of file InlineQueryResultLocation.h.

◆ TYPE

const std::string TgBot::InlineQueryResultLocation::TYPE
static

Definition at line 24 of file InlineQueryResultLocation.h.


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