TDLib
Loading...
Searching...
No Matches
td::td_api::inputMessageInvoice Class Referencefinal

Inherits td::td_api::InputMessageContent.

Public Member Functions

 inputMessageInvoice ()
 
 inputMessageInvoice (object_ptr< invoice > &&invoice_, string const &title_, string const &description_, string const &photo_url_, int32 photo_size_, int32 photo_width_, int32 photo_height_, bytes const &payload_, string const &provider_token_, string const &provider_data_, string const &start_parameter_, object_ptr< InputMessageContent > &&extended_media_content_)
 
std::int32_t get_id () const final
 
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< invoiceinvoice_
 Invoice.
 
string title_
 Product title; 1-32 characters.
 
string description_
 Product description; 0-255 characters.
 
string photo_url_
 Product photo URL; optional.
 
int32 photo_size_
 Product photo size.
 
int32 photo_width_
 Product photo width.
 
int32 photo_height_
 Product photo height.
 
bytes payload_
 The invoice payload.
 
string provider_token_
 Payment provider token.
 
string provider_data_
 JSON-encoded data about the invoice, which will be shared with the payment provider.
 
string start_parameter_
 Unique invoice bot deep link parameter for the generation of this invoice. If empty, it would be possible to pay directly from forwards of the invoice message.
 
object_ptr< InputMessageContentextended_media_content_
 The content of extended media attached to the invoice. The content of the message to be sent. Must be one of the following types: inputMessagePhoto, inputMessageVideo.
 

Static Public Attributes

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

Detailed Description

A message with an invoice; can be used only by bots.

Constructor & Destructor Documentation

◆ inputMessageInvoice() [1/2]

td::td_api::inputMessageInvoice::inputMessageInvoice ( )

A message with an invoice; can be used only by bots.

◆ inputMessageInvoice() [2/2]

td::td_api::inputMessageInvoice::inputMessageInvoice ( object_ptr< invoice > &&  invoice_,
string const &  title_,
string const &  description_,
string const &  photo_url_,
int32  photo_size_,
int32  photo_width_,
int32  photo_height_,
bytes const &  payload_,
string const &  provider_token_,
string const &  provider_data_,
string const &  start_parameter_,
object_ptr< InputMessageContent > &&  extended_media_content_ 
)

A message with an invoice; can be used only by bots.

Parameters
[in]invoice_Invoice.
[in]title_Product title; 1-32 characters.
[in]description_Product description; 0-255 characters.
[in]photo_url_Product photo URL; optional.
[in]photo_size_Product photo size.
[in]photo_width_Product photo width.
[in]photo_height_Product photo height.
[in]payload_The invoice payload.
[in]provider_token_Payment provider token.
[in]provider_data_JSON-encoded data about the invoice, which will be shared with the payment provider.
[in]start_parameter_Unique invoice bot deep link parameter for the generation of this invoice. If empty, it would be possible to pay directly from forwards of the invoice message.
[in]extended_media_content_The content of extended media attached to the invoice. The content of the message to be sent. Must be one of the following types: inputMessagePhoto, inputMessageVideo.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::inputMessageInvoice::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::inputMessageInvoice::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.


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