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

This object contains information about an incoming shipping query. https://core.telegram.org/bots/api#shippingquery. More...

#include <ShippingQuery.hpp>

Public Member Functions

 ShippingQuery ()=default
 
 ShippingQuery (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 id
 Unique query identifier. More...
 
Ptr< Userfrom
 User who sent the query. More...
 
std::string invoicePayload
 Bot specified invoice payload. More...
 
Ptr< ShippingAddressshippingAddress
 User specified shipping address. More...
 

Detailed Description

This object contains information about an incoming shipping query. https://core.telegram.org/bots/api#shippingquery.

Definition at line 10 of file ShippingQuery.hpp.

Constructor & Destructor Documentation

◆ ShippingQuery() [1/2]

tgbotxx::ShippingQuery::ShippingQuery ( )
default

◆ ShippingQuery() [2/2]

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

Definition at line 12 of file ShippingQuery.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 40 of file ShippingQuery.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 30 of file ShippingQuery.hpp.

Member Data Documentation

◆ from

Ptr<User> tgbotxx::ShippingQuery::from

User who sent the query.

Definition at line 20 of file ShippingQuery.hpp.

◆ id

std::string tgbotxx::ShippingQuery::id

Unique query identifier.

Definition at line 17 of file ShippingQuery.hpp.

◆ invoicePayload

std::string tgbotxx::ShippingQuery::invoicePayload

Bot specified invoice payload.

Definition at line 23 of file ShippingQuery.hpp.

◆ shippingAddress

Ptr<ShippingAddress> tgbotxx::ShippingQuery::shippingAddress

User specified shipping address.

Definition at line 26 of file ShippingQuery.hpp.


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