tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
This object represents a portion of the price for goods or services. https://core.telegram.org/bots/api#labeledprice. More...
#include <LabeledPrice.hpp>
Public Member Functions | |
LabeledPrice ()=default | |
LabeledPrice (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 | label |
Portion label. More... | |
std::int32_t | amount {} |
Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). More... | |
This object represents a portion of the price for goods or services. https://core.telegram.org/bots/api#labeledprice.
Definition at line 7 of file LabeledPrice.hpp.
|
default |
|
inlineexplicit |
Definition at line 9 of file LabeledPrice.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 32 of file LabeledPrice.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 24 of file LabeledPrice.hpp.
std::int32_t tgbotxx::LabeledPrice::amount {} |
Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
Definition at line 19 of file LabeledPrice.hpp.
std::string tgbotxx::LabeledPrice::label |
Portion label.
Definition at line 14 of file LabeledPrice.hpp.