tgbot-cpp
Loading...
Searching...
No Matches
InputInvoiceMessageContent.h
Go to the documentation of this file.
1#ifndef TGBOT_INPUTINVOICEMESSAGECONTENT_H
2#define TGBOT_INPUTINVOICEMESSAGECONTENT_H
3
6
7#include <cstdint>
8#include <memory>
9#include <string>
10#include <vector>
11
12namespace TgBot {
13
20public:
21 static const std::string TYPE;
22
23 typedef std::shared_ptr<InputInvoiceMessageContent> Ptr;
24
26 this->type = TYPE;
27 }
28
32 std::string title;
33
37 std::string description;
38
43 std::string payload;
44
48 std::string providerToken;
49
53 std::string currency;
54
58 std::vector<LabeledPrice::Ptr> prices;
59
66 std::int32_t maxTipAmount;
67
73 std::vector<std::int32_t> suggestedTipAmounts;
74
79 std::string providerData;
80
86 std::string photoUrl;
87
91 std::int32_t photoSize;
92
96 std::int32_t photoWidth;
97
101 std::int32_t photoHeight;
102
107
112
117
122
127
132
137};
138}
139
140#endif //TGBOT_INPUTINVOICEMESSAGECONTENT_H
Represents the content of an invoice message to be sent as the result of an inline query.
bool needEmail
Optional. Pass True, if you require the user's email address to complete the order.
bool sendEmailToProvider
Optional. Pass True, if user's email address should be sent to provider.
bool needPhoneNumber
Optional. Pass True, if you require the user's phone number to complete the order.
std::string photoUrl
Optional. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image ...
std::int32_t photoHeight
Optional. Photo height.
std::string providerData
Optional. A JSON-serialized object for data about the invoice, which will be shared with the payment ...
bool isFlexible
Optional. Pass True, if the final price depends on the shipping method.
std::vector< std::int32_t > suggestedTipAmounts
Optional. A JSON-serialized array of suggested amounts of tip in the smallest units of the currency (...
std::string title
Product name, 1-32 characters.
std::shared_ptr< InputInvoiceMessageContent > Ptr
std::string providerToken
Payment provider token, obtained via Botfather.
bool needShippingAddress
Optional. Pass True, if you require the user's shipping address to complete the order.
bool needName
Optional. Pass True, if you require the user's full name to complete the order.
std::string currency
Three-letter ISO 4217 currency code, see https://core.telegram.org/bots/payments#supported-currencies...
bool sendPhoneNumberToProvider
Optional. Pass True, if user's phone number should be sent to provider.
std::string payload
Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your intern...
std::int32_t photoWidth
Optional. Photo width.
std::int32_t photoSize
Optional. Photo size.
std::string description
Product description, 1-255 characters.
std::int32_t maxTipAmount
Optional. The maximum accepted amount for tips in the smallest units of the currency (integer,...
std::vector< LabeledPrice::Ptr > prices
Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount,...
This abstract class is base of all message contents.
std::string type
Type of the content.
Definition Api.h:39