Inherits td::td_api::MessageContent.
|
| | messageInvoice () |
| |
| | messageInvoice (string const &title_, object_ptr< formattedText > &&description_, object_ptr< photo > &&photo_, string const ¤cy_, int53 total_amount_, string const &start_parameter_, bool is_test_, bool need_shipping_address_, int53 receipt_message_id_, object_ptr< MessageExtendedMedia > &&extended_media_) |
| |
| std::int32_t | get_id () const final |
| |
| void | store (TlStorerToString &s, const char *field_name) const final |
| |
| virtual void | store (TlStorerUnsafe &s) const |
| |
| virtual void | store (TlStorerCalcLength &s) const |
| |
| | TlObject ()=default |
| |
| | TlObject (const TlObject &)=delete |
| |
| TlObject & | operator= (const TlObject &)=delete |
| |
| | TlObject (TlObject &&)=default |
| |
| TlObject & | operator= (TlObject &&)=default |
| |
| virtual | ~TlObject ()=default |
| |
|
|
string | title_ |
| | Product title.
|
| |
|
object_ptr< formattedText > | description_ |
| | Product description.
|
| |
|
object_ptr< photo > | photo_ |
| | Product photo; may be null.
|
| |
|
string | currency_ |
| | Currency for the product price.
|
| |
|
int53 | total_amount_ |
| | Product total price in the smallest units of the currency.
|
| |
|
string | start_parameter_ |
| | Unique invoice bot start_parameter to be passed to getInternalLink.
|
| |
|
bool | is_test_ |
| | True, if the invoice is a test invoice.
|
| |
|
bool | need_shipping_address_ |
| | True, if the shipping address must be specified.
|
| |
|
int53 | receipt_message_id_ |
| | The identifier of the message with the receipt, after the product has been purchased.
|
| |
|
object_ptr< MessageExtendedMedia > | extended_media_ |
| | Extended media attached to the invoice; may be null.
|
| |
|
|
static const std::int32_t | ID = 818077142 |
| | Identifier uniquely determining a type of the object.
|
| |
A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice.
◆ messageInvoice() [1/2]
| td::td_api::messageInvoice::messageInvoice |
( |
| ) |
|
◆ messageInvoice() [2/2]
A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice.
- Parameters
-
| [in] | title_ | Product title. |
| [in] | description_ | Product description. |
| [in] | photo_ | Product photo; may be null. |
| [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] | extended_media_ | Extended media attached to the invoice; may be null. |
◆ get_id()
| std::int32_t td::td_api::messageInvoice::get_id |
( |
| ) |
const |
|
inlinefinalvirtual |
Returns identifier uniquely determining a type of the object.
- Returns
- this->ID.
Implements td::TlObject.
◆ store()
| void td::td_api::messageInvoice::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 td::TlObject.
The documentation for this class was generated from the following file: