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

This object represents a venue. https://core.telegram.org/bots/api#venue. More...

#include <Venue.hpp>

Public Member Functions

 Venue ()=default
 
 Venue (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON. More...
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON. More...
 

Public Attributes

Ptr< Locationlocation
 Venue location. Can't be a live location. 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. More...
 
std::string foursquareType
 Optional. Foursquare type of the venue. (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...
 

Detailed Description

This object represents a venue. https://core.telegram.org/bots/api#venue.

Definition at line 8 of file Venue.hpp.

Constructor & Destructor Documentation

◆ Venue() [1/2]

tgbotxx::Venue::Venue ( )
default

◆ Venue() [2/2]

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

Definition at line 10 of file Venue.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::Venue::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 52 of file Venue.hpp.

◆ toJson()

nl::json tgbotxx::Venue::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 39 of file Venue.hpp.

Member Data Documentation

◆ address

std::string tgbotxx::Venue::address

Address of the venue.

Definition at line 21 of file Venue.hpp.

◆ foursquareId

std::string tgbotxx::Venue::foursquareId

Optional. Foursquare identifier of the venue.

Definition at line 24 of file Venue.hpp.

◆ foursquareType

std::string tgbotxx::Venue::foursquareType

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

Definition at line 28 of file Venue.hpp.

◆ googlePlaceId

std::string tgbotxx::Venue::googlePlaceId

Optional. Google Places identifier of the venue.

Definition at line 31 of file Venue.hpp.

◆ googlePlaceType

std::string tgbotxx::Venue::googlePlaceType

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

Definition at line 34 of file Venue.hpp.

◆ location

Ptr<Location> tgbotxx::Venue::location

Venue location. Can't be a live location.

Definition at line 15 of file Venue.hpp.

◆ title

std::string tgbotxx::Venue::title

Name of the venue.

Definition at line 18 of file Venue.hpp.


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