Inherits MessageContent.
A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice.
|
|
string | currency_ |
| | Currency for the product price.
|
| |
|
bool | is_test_ |
| | True, if the invoice is a test invoice.
|
| |
|
bool | need_shipping_address_ |
| | True, if the shipping address must be specified.
|
| |
|
object_ptr< PaidMedia > | paid_media_ |
| | Extended media attached to the invoice; may be null if none.
|
| |
|
object_ptr< formattedText > | paid_media_caption_ |
| | Extended media caption; may be null if none.
|
| |
|
object_ptr< productInfo > | product_info_ |
| | Information about the product.
|
| |
|
int53 | receipt_message_id_ |
| | The identifier of the message with the receipt, after the product has been purchased.
|
| |
|
string | start_parameter_ |
| | Unique invoice bot start_parameter to be passed to getInternalLink.
|
| |
|
int53 | total_amount_ |
| | Product total price in the smallest units of the currency.
|
| |
|
|
static const std::int32_t | ID = 263060806 |
| | Identifier uniquely determining a type of the object.
|
| |
◆ messageInvoice() [1/2]
◆ messageInvoice() [2/2]
A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice.
- Parameters
-
| [in] | product_info_ | Information about the product. |
| [in] | currency_ | Currency for the product price. |
| [in] | total_amount_ | Product total price in the smallest units of the currency. |
| [in] | start_parameter_ | Unique invoice bot start_parameter to be passed to getInternalLink. |
| [in] | is_test_ | True, if the invoice is a test invoice. |
| [in] | need_shipping_address_ | True, if the shipping address must be specified. |
| [in] | receipt_message_id_ | The identifier of the message with the receipt, after the product has been purchased. |
| [in] | paid_media_ | Extended media attached to the invoice; may be null if none. |
| [in] | paid_media_caption_ | Extended media caption; may be null if none. |
◆ store()
| void store |
( |
TlStorerToString & |
s, |
|
|
const char * |
field_name |
|
) |
| const |
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
- Parameters
-
| [in] | s | Storer to which object string representation will be appended. |
| [in] | field_name | Object field_name if applicable. |
Implements TlObject.
The documentation for this class was generated from the following file: