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

Represents the content of a location message to be sent as the result of an inline query. More...

#include <InputLocationMessageContent.h>

Inheritance diagram for TgBot::InputLocationMessageContent:
TgBot::InputMessageContent

Public Types

typedef std::shared_ptr< InputLocationMessageContentPtr
 
- Public Types inherited from TgBot::InputMessageContent
typedef std::shared_ptr< InputMessageContentPtr
 

Public Member Functions

 InputLocationMessageContent ()
 
- Public Member Functions inherited from TgBot::InputMessageContent
 InputMessageContent ()
 
virtual ~InputMessageContent ()
 

Public Attributes

float latitude
 Latitude of the location in degrees.
 
float longitude
 Longitude of the location in degrees.
 
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.
 
- Public Attributes inherited from TgBot::InputMessageContent
std::string type
 Type of the content.
 

Static Public Attributes

static const std::string TYPE
 

Detailed Description

Represents the content of a location message to be sent as the result of an inline query.

Definition at line 15 of file InputLocationMessageContent.h.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ InputLocationMessageContent()

TgBot::InputLocationMessageContent::InputLocationMessageContent ( )
inline

Definition at line 21 of file InputLocationMessageContent.h.

Member Data Documentation

◆ heading

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

◆ horizontalAccuracy

float TgBot::InputLocationMessageContent::horizontalAccuracy

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

Definition at line 38 of file InputLocationMessageContent.h.

◆ latitude

float TgBot::InputLocationMessageContent::latitude

Latitude of the location in degrees.

Definition at line 28 of file InputLocationMessageContent.h.

◆ livePeriod

std::int32_t TgBot::InputLocationMessageContent::livePeriod

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

Definition at line 43 of file InputLocationMessageContent.h.

◆ longitude

float TgBot::InputLocationMessageContent::longitude

Longitude of the location in degrees.

Definition at line 33 of file InputLocationMessageContent.h.

◆ proximityAlertRadius

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

◆ TYPE

const std::string TgBot::InputLocationMessageContent::TYPE
static

Definition at line 17 of file InputLocationMessageContent.h.


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