tgbot-cpp
Loading...
Searching...
No Matches
TgBot::Invoice Struct Reference

This object contains basic information about an invoice. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<Invoice>

Public Attributes

std::string title { }
 Product name.
std::string description { }
 Product description.
std::string startParameter { }
 Unique bot deep-linking parameter that can be used to generate this invoice.
std::string currency { }
 Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.
std::int32_t totalAmount { }
 Total price 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).

Detailed Description

This object contains basic information about an invoice.

Definition at line 8188 of file Types.h.

Member Typedef Documentation

◆ Ptr

using TgBot::Invoice::Ptr = std::shared_ptr<Invoice>

Definition at line 8189 of file Types.h.

Member Data Documentation

◆ currency

std::string TgBot::Invoice::currency { }

Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.

Definition at line 8209 of file Types.h.

◆ description

std::string TgBot::Invoice::description { }

Product description.

Definition at line 8199 of file Types.h.

◆ startParameter

std::string TgBot::Invoice::startParameter { }

Unique bot deep-linking parameter that can be used to generate this invoice.

Definition at line 8204 of file Types.h.

◆ title

std::string TgBot::Invoice::title { }

Product name.

Definition at line 8194 of file Types.h.

◆ totalAmount

std::int32_t TgBot::Invoice::totalAmount { }

Total price 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 8217 of file Types.h.


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