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

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

#include <InlineQueryResult.hpp>

Inheritance diagram for tgbotxx::InlineQueryResultVenue:
tgbotxx::InlineQueryResult

Public Member Functions

 InlineQueryResultVenue ()
 
 InlineQueryResultVenue (const nl::json &json)
 
nl::json toJson () const override
 
void fromJson (const nl::json &json) override
 
- Public Member Functions inherited from tgbotxx::InlineQueryResult
 InlineQueryResult ()=default
 
 InlineQueryResult (const nl::json &json)
 

Public Attributes

float latitude {}
 Latitude of the venue location in degrees. More...
 
float longitude {}
 Longitude of the venue location in degrees. More...
 
std::string title
 Title 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.) More...
 
Ptr< InputMessageContentinputMessageContent
 Optional. Content of the message to be sent instead of the venue. More...
 
std::string thumbnailUrl
 Optional. URL of the thumbnail (JPEG only) for the file. More...
 
std::int32_t thumbnailWidth {}
 Optional. Thumbnail width;. More...
 
std::int32_t thumbnailHeight {}
 Optional. Thumbnail height;. More...
 
- Public Attributes inherited from tgbotxx::InlineQueryResult
std::string type
 Type of the result. More...
 
std::string id
 Unique identifier for this result, 1-64 bytes. More...
 
Ptr< InlineKeyboardMarkupreplyMarkup
 Optional. Inline keyboard attached to the message. More...
 

Detailed Description

Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the venue.

Definition at line 721 of file InlineQueryResult.hpp.

Constructor & Destructor Documentation

◆ InlineQueryResultVenue() [1/2]

tgbotxx::InlineQueryResultVenue::InlineQueryResultVenue ( )
inline

Definition at line 722 of file InlineQueryResult.hpp.

◆ InlineQueryResultVenue() [2/2]

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

Definition at line 725 of file InlineQueryResult.hpp.

Member Function Documentation

◆ fromJson()

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

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 783 of file InlineQueryResult.hpp.

◆ toJson()

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

Reimplemented from tgbotxx::InlineQueryResult.

Definition at line 766 of file InlineQueryResult.hpp.

Member Data Documentation

◆ address

std::string tgbotxx::InlineQueryResultVenue::address

Address of the venue.

Definition at line 739 of file InlineQueryResult.hpp.

◆ foursquareId

std::string tgbotxx::InlineQueryResultVenue::foursquareId

Optional. Foursquare identifier of the venue if known.

Definition at line 742 of file InlineQueryResult.hpp.

◆ foursquareType

std::string tgbotxx::InlineQueryResultVenue::foursquareType

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

Definition at line 746 of file InlineQueryResult.hpp.

◆ googlePlaceId

std::string tgbotxx::InlineQueryResultVenue::googlePlaceId

Optional. Google Places identifier of the venue.

Definition at line 749 of file InlineQueryResult.hpp.

◆ googlePlaceType

std::string tgbotxx::InlineQueryResultVenue::googlePlaceType

Optional. Google Places type of the venue. (See supported types.)

Definition at line 752 of file InlineQueryResult.hpp.

◆ inputMessageContent

Ptr<InputMessageContent> tgbotxx::InlineQueryResultVenue::inputMessageContent

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

Definition at line 755 of file InlineQueryResult.hpp.

◆ latitude

float tgbotxx::InlineQueryResultVenue::latitude {}

Latitude of the venue location in degrees.

Definition at line 730 of file InlineQueryResult.hpp.

◆ longitude

float tgbotxx::InlineQueryResultVenue::longitude {}

Longitude of the venue location in degrees.

Definition at line 733 of file InlineQueryResult.hpp.

◆ thumbnailHeight

std::int32_t tgbotxx::InlineQueryResultVenue::thumbnailHeight {}

Optional. Thumbnail height;.

Definition at line 764 of file InlineQueryResult.hpp.

◆ thumbnailUrl

std::string tgbotxx::InlineQueryResultVenue::thumbnailUrl

Optional. URL of the thumbnail (JPEG only) for the file.

Definition at line 758 of file InlineQueryResult.hpp.

◆ thumbnailWidth

std::int32_t tgbotxx::InlineQueryResultVenue::thumbnailWidth {}

Optional. Thumbnail width;.

Definition at line 761 of file InlineQueryResult.hpp.

◆ title

std::string tgbotxx::InlineQueryResultVenue::title

Title of the venue.

Definition at line 736 of file InlineQueryResult.hpp.


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