|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
This object represents one shipping option. https://core.telegram.org/bots/api#shippingoption. More...
#include <ShippingOption.hpp>
Public Member Functions | |
| ShippingOption ()=default | |
| ShippingOption (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 | id |
| Shipping option identifier. | |
| std::string | title |
| Option title. | |
| std::vector< Ptr< LabeledPrice > > | prices |
| List of price portions. | |
This object represents one shipping option. https://core.telegram.org/bots/api#shippingoption.
Definition at line 8 of file ShippingOption.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file ShippingOption.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 34 of file ShippingOption.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 25 of file ShippingOption.hpp.
| std::string tgbotxx::ShippingOption::id |
Shipping option identifier.
Definition at line 15 of file ShippingOption.hpp.
| std::vector<Ptr<LabeledPrice> > tgbotxx::ShippingOption::prices |
List of price portions.
Definition at line 21 of file ShippingOption.hpp.
| std::string tgbotxx::ShippingOption::title |
Option title.
Definition at line 18 of file ShippingOption.hpp.