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

Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<InlineQueryResultLocation>

Public Attributes

std::string type { TYPE }
 Type of the result, must be location.
std::string id { }
 Unique identifier for this result, 1-64 Bytes.
double latitude { }
 Location latitude in degrees.
double longitude { }
 Location longitude in degrees.
std::string title { }
 Location title.
std::optional< double > horizontalAccuracy { }
 Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
std::optional< std::int32_t > livePeriod { }
 Optional. Period in seconds during which the location can be updated, must be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.
std::optional< 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::optional< 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.
std::shared_ptr< InlineKeyboardMarkupreplyMarkup { }
 Optional. Inline keyboard attached to the message.
std::shared_ptr< InputMessageContentinputMessageContent { }
 Optional. Content of the message to be sent instead of the location.
std::optional< std::string > thumbnailUrl { }
 Optional. Url of the thumbnail for the result.
std::optional< std::int32_t > thumbnailWidth { }
 Optional. Thumbnail width.
std::optional< std::int32_t > thumbnailHeight { }
 Optional. Thumbnail height.

Static Public Attributes

static TGBOT_API 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 input_message_content to send a message with the specified content instead of the location.

Definition at line 5447 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 5448 of file Types.h.

Member Data Documentation

◆ heading

std::optional<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 5492 of file Types.h.

◆ horizontalAccuracy

std::optional<double> TgBot::InlineQueryResultLocation::horizontalAccuracy { }

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

Definition at line 5480 of file Types.h.

◆ id

std::string TgBot::InlineQueryResultLocation::id { }

Unique identifier for this result, 1-64 Bytes.

Definition at line 5460 of file Types.h.

◆ inputMessageContent

std::shared_ptr<InputMessageContent> TgBot::InlineQueryResultLocation::inputMessageContent { }

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

Definition at line 5508 of file Types.h.

◆ latitude

double TgBot::InlineQueryResultLocation::latitude { }

Location latitude in degrees.

Definition at line 5465 of file Types.h.

◆ livePeriod

std::optional<std::int32_t> TgBot::InlineQueryResultLocation::livePeriod { }

Optional. Period in seconds during which the location can be updated, must be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.

Definition at line 5486 of file Types.h.

◆ longitude

double TgBot::InlineQueryResultLocation::longitude { }

Location longitude in degrees.

Definition at line 5470 of file Types.h.

◆ proximityAlertRadius

std::optional<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 5498 of file Types.h.

◆ replyMarkup

std::shared_ptr<InlineKeyboardMarkup> TgBot::InlineQueryResultLocation::replyMarkup { }

Optional. Inline keyboard attached to the message.

Definition at line 5503 of file Types.h.

◆ thumbnailHeight

std::optional<std::int32_t> TgBot::InlineQueryResultLocation::thumbnailHeight { }

Optional. Thumbnail height.

Definition at line 5523 of file Types.h.

◆ thumbnailUrl

std::optional<std::string> TgBot::InlineQueryResultLocation::thumbnailUrl { }

Optional. Url of the thumbnail for the result.

Definition at line 5513 of file Types.h.

◆ thumbnailWidth

std::optional<std::int32_t> TgBot::InlineQueryResultLocation::thumbnailWidth { }

Optional. Thumbnail width.

Definition at line 5518 of file Types.h.

◆ title

std::string TgBot::InlineQueryResultLocation::title { }

Location title.

Definition at line 5475 of file Types.h.

◆ TYPE

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

Definition at line 5450 of file Types.h.

◆ type

std::string TgBot::InlineQueryResultLocation::type { TYPE }

Type of the result, must be location.

Definition at line 5455 of file Types.h.


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