tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::messageInvoice Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::messageInvoice:
td::td_api::MessageContent td::td_api::Object td::TlObject

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

Public Attributes

object_ptr< productInfoproduct_info_
 Information about the product.
 
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< PaidMediapaid_media_
 Extended media attached to the invoice; may be null if none.
 
object_ptr< formattedTextpaid_media_caption_
 Extended media caption; may be null if none.
 

Static Public Attributes

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

Detailed Description

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

Definition at line 39931 of file td_api.h.

Constructor & Destructor Documentation

◆ messageInvoice() [1/2]

td::td_api::messageInvoice::messageInvoice ( )

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

◆ messageInvoice() [2/2]

td::td_api::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_ 
)

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

Implements td::TlObject.

Member Data Documentation

◆ currency_

string td::td_api::messageInvoice::currency_

Currency for the product price.

Definition at line 39944 of file td_api.h.

◆ ID

const std::int32_t td::td_api::messageInvoice::ID = 263060806
static

Identifier uniquely determining a type of the object.

Definition at line 39981 of file td_api.h.

◆ is_test_

bool td::td_api::messageInvoice::is_test_

True, if the invoice is a test invoice.

Definition at line 39950 of file td_api.h.

◆ need_shipping_address_

bool td::td_api::messageInvoice::need_shipping_address_

True, if the shipping address must be specified.

Definition at line 39952 of file td_api.h.

◆ paid_media_

object_ptr<PaidMedia> td::td_api::messageInvoice::paid_media_

Extended media attached to the invoice; may be null if none.

Definition at line 39956 of file td_api.h.

◆ paid_media_caption_

object_ptr<formattedText> td::td_api::messageInvoice::paid_media_caption_

Extended media caption; may be null if none.

Definition at line 39958 of file td_api.h.

◆ product_info_

object_ptr<productInfo> td::td_api::messageInvoice::product_info_

Information about the product.

Definition at line 39942 of file td_api.h.

◆ receipt_message_id_

int53 td::td_api::messageInvoice::receipt_message_id_

The identifier of the message with the receipt, after the product has been purchased.

Definition at line 39954 of file td_api.h.

◆ start_parameter_

string td::td_api::messageInvoice::start_parameter_

Unique invoice bot start_parameter to be passed to getInternalLink.

Definition at line 39948 of file td_api.h.

◆ total_amount_

int53 td::td_api::messageInvoice::total_amount_

Product total price in the smallest units of the currency.

Definition at line 39946 of file td_api.h.


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