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

Represents a location to which a chat is connected. https://core.telegram.org/bots/api#chatlocation. More...

#include <ChatLocation.hpp>

Public Member Functions

 ChatLocation ()=default
 
 ChatLocation (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
 The location to which the supergroup is connected. Can't be a live location. More...
 
std::string address
 Location address; 1-64 characters, as defined by the chat owner. More...
 

Detailed Description

Represents a location to which a chat is connected. https://core.telegram.org/bots/api#chatlocation.

Definition at line 8 of file ChatLocation.hpp.

Constructor & Destructor Documentation

◆ ChatLocation() [1/2]

tgbotxx::ChatLocation::ChatLocation ( )
default

◆ ChatLocation() [2/2]

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

Definition at line 10 of file ChatLocation.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 31 of file ChatLocation.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 23 of file ChatLocation.hpp.

Member Data Documentation

◆ address

std::string tgbotxx::ChatLocation::address

Location address; 1-64 characters, as defined by the chat owner.

Definition at line 18 of file ChatLocation.hpp.

◆ location

Ptr<Location> tgbotxx::ChatLocation::location

The location to which the supergroup is connected. Can't be a live location.

Definition at line 15 of file ChatLocation.hpp.


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