tgbotxx 1.1.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::BusinessLocation Struct Reference

Contains information about the location of a Telegram Business account. https://core.telegram.org/bots/api#businesslocation. More...

#include <BusinessLocation.hpp>

Public Member Functions

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

Public Attributes

std::string address
 Address of the business.
 
Ptr< Locationlocation
 Optional. Location of the business.
 

Detailed Description

Contains information about the location of a Telegram Business account. https://core.telegram.org/bots/api#businesslocation.

Definition at line 8 of file BusinessLocation.hpp.

Constructor & Destructor Documentation

◆ BusinessLocation() [1/2]

tgbotxx::BusinessLocation::BusinessLocation ( )
default

◆ BusinessLocation() [2/2]

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

Definition at line 10 of file BusinessLocation.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 31 of file BusinessLocation.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 23 of file BusinessLocation.hpp.

Member Data Documentation

◆ address

std::string tgbotxx::BusinessLocation::address

Address of the business.

Definition at line 15 of file BusinessLocation.hpp.

◆ location

Ptr<Location> tgbotxx::BusinessLocation::location

Optional. Location of the business.

Definition at line 18 of file BusinessLocation.hpp.


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