TDLib
Loading...
Searching...
No Matches
messageInvoice Class Referencefinal

Inherits MessageContent.

Description

A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice.

Public Member Functions

 messageInvoice ()
 messageInvoice (object_ptr< productInfo > &&product_info_, string const &currency_, int53 total_amount_, string const &start_parameter_, bool is_test_, bool need_shipping_address_, int53 receipt_message_id_, object_ptr< PaidMedia > &&paid_media_, object_ptr< formattedText > &&paid_media_caption_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

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 Public Attributes

static const std::int32_t ID = 263060806
 Identifier uniquely determining a type of the object.

Constructor & Destructor Documentation

◆ messageInvoice() [1/2]

messageInvoice ( )

A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice.

◆ messageInvoice() [2/2]

messageInvoice ( object_ptr< productInfo > && product_info_,
string const & currency_,
int53 total_amount_,
string const & start_parameter_,
bool is_test_,
bool need_shipping_address_,
int53 receipt_message_id_,
object_ptr< PaidMedia > && paid_media_,
object_ptr< formattedText > && paid_media_caption_ )

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.

Member Function Documentation

◆ 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]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


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