tgbot-cpp
Loading...
Searching...
No Matches
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.
 
std::int32_t amount
 Price of the product in the smallest units of the currency (integer, not float/double).
 

Detailed Description

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.

Member Typedef Documentation

◆ Ptr

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

Definition at line 18 of file LabeledPrice.h.

Member Data Documentation

◆ amount

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.

◆ label

std::string TgBot::LabeledPrice::label

Portion label.

Definition at line 23 of file LabeledPrice.h.


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