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

Represents the content of a location message to be sent as the result of an inline query. https://core.telegram.org/bots/api#inputlocationmessagecontent. More...

#include <InputMessageContent.hpp>

Inheritance diagram for tgbotxx::InputLocationMessageContent:
tgbotxx::InputMessageContent

Public Member Functions

 InputLocationMessageContent ()
 
 InputLocationMessageContent (const nl::json &json)
 
nl::json toJson () const override
 
void fromJson (const nl::json &json) override
 
- Public Member Functions inherited from tgbotxx::InputMessageContent
 InputMessageContent ()=default
 
 InputMessageContent (const nl::json &json)
 
virtual ~InputMessageContent ()=default
 

Public Attributes

float latitude {}
 Latitude of the location in degrees. More...
 
float longitude {}
 Longitude of the location in degrees. More...
 
float horizontalAccuracy {}
 Optional. The radius of uncertainty for the location, measured in meters; 0-1500. 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...
 
- Public Attributes inherited from tgbotxx::InputMessageContent
std::string type
 Type of this content. More...
 

Detailed Description

Represents the content of a location message to be sent as the result of an inline query. https://core.telegram.org/bots/api#inputlocationmessagecontent.

Definition at line 86 of file InputMessageContent.hpp.

Constructor & Destructor Documentation

◆ InputLocationMessageContent() [1/2]

tgbotxx::InputLocationMessageContent::InputLocationMessageContent ( )
inline

Definition at line 87 of file InputMessageContent.hpp.

◆ InputLocationMessageContent() [2/2]

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

Definition at line 90 of file InputMessageContent.hpp.

Member Function Documentation

◆ fromJson()

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

Reimplemented from tgbotxx::InputMessageContent.

Definition at line 120 of file InputMessageContent.hpp.

◆ toJson()

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

Reimplemented from tgbotxx::InputMessageContent.

Definition at line 110 of file InputMessageContent.hpp.

Member Data Documentation

◆ heading

std::int32_t tgbotxx::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 104 of file InputMessageContent.hpp.

◆ horizontalAccuracy

float tgbotxx::InputLocationMessageContent::horizontalAccuracy {}

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

Definition at line 101 of file InputMessageContent.hpp.

◆ latitude

float tgbotxx::InputLocationMessageContent::latitude {}

Latitude of the location in degrees.

Definition at line 95 of file InputMessageContent.hpp.

◆ longitude

float tgbotxx::InputLocationMessageContent::longitude {}

Longitude of the location in degrees.

Definition at line 98 of file InputMessageContent.hpp.

◆ proximityAlertRadius

std::int32_t tgbotxx::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 107 of file InputMessageContent.hpp.


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