tgbot-cpp
Loading...
Searching...
No Matches
TgBot::PreCheckoutQuery Class Reference

This object contains information about an incoming pre-checkout query. More...

#include <PreCheckoutQuery.h>

Public Types

typedef std::shared_ptr< PreCheckoutQueryPtr
 

Public Attributes

std::string id
 Unique query identifier.
 
User::Ptr from
 User who sent the query.
 
std::string currency
 Three-letter ISO 4217 currency code.
 
std::int32_t totalAmount
 Total price in the smallest units of the currency (integer, not float/double).
 
std::string invoicePayload
 Bot specified invoice payload.
 
std::string shippingOptionId
 Optional. Identifier of the shipping option chosen by the user.
 
OrderInfo::Ptr orderInfo
 Optional. Order info provided by the user.
 

Detailed Description

This object contains information about an incoming pre-checkout query.

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

Definition at line 21 of file PreCheckoutQuery.h.

Member Typedef Documentation

◆ Ptr

Definition at line 23 of file PreCheckoutQuery.h.

Member Data Documentation

◆ currency

std::string TgBot::PreCheckoutQuery::currency

Three-letter ISO 4217 currency code.

Definition at line 38 of file PreCheckoutQuery.h.

◆ from

User::Ptr TgBot::PreCheckoutQuery::from

User who sent the query.

Definition at line 33 of file PreCheckoutQuery.h.

◆ id

std::string TgBot::PreCheckoutQuery::id

Unique query identifier.

Definition at line 28 of file PreCheckoutQuery.h.

◆ invoicePayload

std::string TgBot::PreCheckoutQuery::invoicePayload

Bot specified invoice payload.

Definition at line 56 of file PreCheckoutQuery.h.

◆ orderInfo

OrderInfo::Ptr TgBot::PreCheckoutQuery::orderInfo

Optional. Order info provided by the user.

Definition at line 66 of file PreCheckoutQuery.h.

◆ shippingOptionId

std::string TgBot::PreCheckoutQuery::shippingOptionId

Optional. Identifier of the shipping option chosen by the user.

Definition at line 61 of file PreCheckoutQuery.h.

◆ totalAmount

std::int32_t TgBot::PreCheckoutQuery::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).

https://core.telegram.org/bots/payments/currencies.json

Definition at line 51 of file PreCheckoutQuery.h.


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