Inherits InputMessageContent.
A message with an invoice; can be used only by bots.
Public Fields | |
| object_ptr< invoice > | invoice_ |
| 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; may be empty for payments in Telegram Stars. | |
| 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< inputPaidMedia > | paid_media_ |
| The content of paid media attached to the invoice; pass null if none. | |
| object_ptr< formattedText > | paid_media_caption_ |
| Paid media caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters. | |
Public Instance Methods | |
| 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< inputPaidMedia > &&paid_media_, object_ptr< formattedText > &&paid_media_caption_) | |
| 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 | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject (TlObject &&)=default | |
| TlObject & | operator= (TlObject &&)=default |
| virtual | ~TlObject ()=default |
Static Public Attributes | |
| static const std::int32_t | ID = -1162047631 |
| Identifier uniquely determining a type of the object. | |
A message with an invoice; can be used only by bots.
| 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< inputPaidMedia > && | paid_media_, | ||
| object_ptr< formattedText > && | paid_media_caption_ | ||
| ) |
A message with an invoice; can be used only by bots.
| [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; may be empty for payments in Telegram Stars. |
| [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] | paid_media_ | The content of paid media attached to the invoice; pass null if none. |
| [in] | paid_media_caption_ | Paid media caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters. |
|
finalvirtual |