tgbot-cpp
Loading...
Searching...
No Matches
TgBot::InlineQueryResultLocation Class 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 <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. 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.
 
InputMessageContent::Ptr inputMessageContent
 Optional. Content of the message to be sent instead of the location.
 
std::string thumbUrl
 Optional. Url of the thumbnail for the result.
 
std::int32_t thumbWidth
 Optional. Thumbnail width.
 
std::int32_t thumbHeight
 Optinal. 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 20 of file InlineQueryResultLocation.h.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ InlineQueryResultLocation()

TgBot::InlineQueryResultLocation::InlineQueryResultLocation ( )
inline

Definition at line 26 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 59 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 48 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 70 of file InlineQueryResultLocation.h.

◆ latitude

float TgBot::InlineQueryResultLocation::latitude

Location latitude in degrees.

Definition at line 33 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 53 of file InlineQueryResultLocation.h.

◆ longitude

float TgBot::InlineQueryResultLocation::longitude

Location longitude in degrees.

Definition at line 38 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 65 of file InlineQueryResultLocation.h.

◆ thumbHeight

std::int32_t TgBot::InlineQueryResultLocation::thumbHeight

Optinal. Thumbnail height.

Definition at line 85 of file InlineQueryResultLocation.h.

◆ thumbUrl

std::string TgBot::InlineQueryResultLocation::thumbUrl

Optional. Url of the thumbnail for the result.

Definition at line 75 of file InlineQueryResultLocation.h.

◆ thumbWidth

std::int32_t TgBot::InlineQueryResultLocation::thumbWidth

Optional. Thumbnail width.

Definition at line 80 of file InlineQueryResultLocation.h.

◆ title

std::string TgBot::InlineQueryResultLocation::title

Location title.

Definition at line 43 of file InlineQueryResultLocation.h.

◆ TYPE

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

Definition at line 22 of file InlineQueryResultLocation.h.


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