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

Describes a Web App. https://core.telegram.org/bots/api#webappinfo. More...

#include <WebAppInfo.hpp>

Public Member Functions

 WebAppInfo ()=default
 
 WebAppInfo (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

std::string url
 An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps Web Apps https://core.telegram.org/bots/webapps#initializing-mini-apps . More...
 

Detailed Description

Describes a Web App. https://core.telegram.org/bots/api#webappinfo.

Definition at line 7 of file WebAppInfo.hpp.

Constructor & Destructor Documentation

◆ WebAppInfo() [1/2]

tgbotxx::WebAppInfo::WebAppInfo ( )
default

◆ WebAppInfo() [2/2]

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

Definition at line 9 of file WebAppInfo.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 27 of file WebAppInfo.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 20 of file WebAppInfo.hpp.

Member Data Documentation

◆ url

std::string tgbotxx::WebAppInfo::url

An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps Web Apps https://core.telegram.org/bots/webapps#initializing-mini-apps .

Definition at line 15 of file WebAppInfo.hpp.


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