List of all members | Public Fields | Public Instance Methods | Static Public Attributes
messageInvoice Class Referencefinal

Inherits MessageContent.

Description

A message with an invoice from a bot.

Public Fields

string title_
 Product title.
 
string description_
 Product description.
 
object_ptr< photophoto_
 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 share an invoice use the URL https://t.me/{bot_username}?start={start_parameter}.
 
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.
 

Public Instance Methods

 messageInvoice ()
 
 messageInvoice (string const &title_, string const &description_, object_ptr< photo > &&photo_, string const &currency_, int53 total_amount_, string const &start_parameter_, bool is_test_, bool need_shipping_address_, int53 receipt_message_id_)
 
std::int32_t get_id () const final
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ messageInvoice() [1/2]

A message with an invoice from a bot.

◆ messageInvoice() [2/2]

messageInvoice ( string const &  title_,
string const &  description_,
object_ptr< photo > &&  photo_,
string const &  currency_,
int53  total_amount_,
string const &  start_parameter_,
bool  is_test_,
bool  need_shipping_address_,
int53  receipt_message_id_ 
)

A message with an invoice from a bot.

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 share an invoice use the URL https://t.me/{bot_username}?start={start_parameter}.
[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.

Method Documentation

◆ get_id()

std::int32_t get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements TlObject.

◆ 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: