tgbot-cpp
|
This object represents a portion of the price for goods or services. More...
#include <LabeledPrice.h>
Public Types | |
typedef std::shared_ptr< LabeledPrice > | Ptr |
Public Attributes | |
std::string | label |
Portion label. | |
std::int32_t | amount |
Price of the product in the smallest units of the currency (integer, not float/double). | |
This object represents a portion of the price for goods or services.
https://core.telegram.org/bots/api#labeledprice
Definition at line 16 of file LabeledPrice.h.
typedef std::shared_ptr<LabeledPrice> TgBot::LabeledPrice::Ptr |
Definition at line 18 of file LabeledPrice.h.
std::int32_t TgBot::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).
https://core.telegram.org/bots/payments/currencies.json
Definition at line 35 of file LabeledPrice.h.
std::string TgBot::LabeledPrice::label |
Portion label.
Definition at line 23 of file LabeledPrice.h.