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

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

#include <InputMessageContent.hpp>

Inheritance diagram for tgbotxx::InputVenueMessageContent:
tgbotxx::InputMessageContent

Public Member Functions

 InputVenueMessageContent ()
 
 InputVenueMessageContent (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 venue in degrees. More...
 
float longitude {}
 Longitude of the venue in degrees. More...
 
std::string title
 Name of the venue. More...
 
std::string address
 Address of the venue. More...
 
std::string foursquareId
 Optional. Foursquare identifier of the venue, if known. More...
 
std::string foursquareType
 Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.) More...
 
std::string googlePlaceId
 Optional. Google Places identifier of the venue. More...
 
std::string googlePlaceType
 Optional. Google Places type of the venue. (See supported types.) https://developers.google.com/places/web-service/supported_types. More...
 
- Public Attributes inherited from tgbotxx::InputMessageContent
std::string type
 Type of this content. More...
 

Detailed Description

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

Definition at line 132 of file InputMessageContent.hpp.

Constructor & Destructor Documentation

◆ InputVenueMessageContent() [1/2]

tgbotxx::InputVenueMessageContent::InputVenueMessageContent ( )
inline

Definition at line 133 of file InputMessageContent.hpp.

◆ InputVenueMessageContent() [2/2]

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

Definition at line 136 of file InputMessageContent.hpp.

Member Function Documentation

◆ fromJson()

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

Reimplemented from tgbotxx::InputMessageContent.

Definition at line 177 of file InputMessageContent.hpp.

◆ toJson()

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

Reimplemented from tgbotxx::InputMessageContent.

Definition at line 164 of file InputMessageContent.hpp.

Member Data Documentation

◆ address

std::string tgbotxx::InputVenueMessageContent::address

Address of the venue.

Definition at line 150 of file InputMessageContent.hpp.

◆ foursquareId

std::string tgbotxx::InputVenueMessageContent::foursquareId

Optional. Foursquare identifier of the venue, if known.

Definition at line 153 of file InputMessageContent.hpp.

◆ foursquareType

std::string tgbotxx::InputVenueMessageContent::foursquareType

Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)

Definition at line 156 of file InputMessageContent.hpp.

◆ googlePlaceId

std::string tgbotxx::InputVenueMessageContent::googlePlaceId

Optional. Google Places identifier of the venue.

Definition at line 159 of file InputMessageContent.hpp.

◆ googlePlaceType

std::string tgbotxx::InputVenueMessageContent::googlePlaceType

Optional. Google Places type of the venue. (See supported types.) https://developers.google.com/places/web-service/supported_types.

Definition at line 162 of file InputMessageContent.hpp.

◆ latitude

float tgbotxx::InputVenueMessageContent::latitude {}

Latitude of the venue in degrees.

Definition at line 141 of file InputMessageContent.hpp.

◆ longitude

float tgbotxx::InputVenueMessageContent::longitude {}

Longitude of the venue in degrees.

Definition at line 144 of file InputMessageContent.hpp.

◆ title

std::string tgbotxx::InputVenueMessageContent::title

Name of the venue.

Definition at line 147 of file InputMessageContent.hpp.


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