tgbot-cpp
TgBot::LabeledPrice Class Reference

This object represents a portion of the price for goods or services. More...

#include <LabeledPrice.h>

Public Types

typedef std::shared_ptr< LabeledPricePtr
 

Public Attributes

std::string label
 Portion label. More...
 
int32_t amount
 Price of the product in the smallest units of the currency (integer, not float/double). More...
 

Detailed Description

This object represents a portion of the price for goods or services.

https://core.telegram.org/bots/api#labeledprice

Definition at line 19 of file LabeledPrice.h.

Member Typedef Documentation

typedef std::shared_ptr<LabeledPrice> TgBot::LabeledPrice::Ptr

Definition at line 21 of file LabeledPrice.h.

Member Data Documentation

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 38 of file LabeledPrice.h.

std::string TgBot::LabeledPrice::label

Portion label.

Definition at line 26 of file LabeledPrice.h.


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