Inherits Function.
Returns an invoice payment form. This method must be called when the user presses inline button of the type inlineKeyboardButtonTypeBuy, or wants to buy access to media in a messagePaidMedia message.
Returns object_ptr<PaymentForm>.
Public Fields | |
object_ptr< InputInvoice > | input_invoice_ |
The invoice. | |
object_ptr< themeParameters > | theme_ |
Preferred payment form theme; pass null to use the default theme. | |
Public Types | |
using | ReturnType = object_ptr< paymentForm > |
Typedef for the type returned by the function. | |
Public Instance Methods | |
getPaymentForm () | |
getPaymentForm (object_ptr< InputInvoice > &&input_invoice_, object_ptr< themeParameters > &&theme_) | |
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 = -1924172076 |
Identifier uniquely determining a type of the object. | |
getPaymentForm | ( | ) |
Default constructor for a function, which returns an invoice payment form. This method must be called when the user presses inline button of the type inlineKeyboardButtonTypeBuy, or wants to buy access to media in a messagePaidMedia message.
Returns object_ptr<PaymentForm>.
getPaymentForm | ( | object_ptr< InputInvoice > && | input_invoice_, |
object_ptr< themeParameters > && | theme_ | ||
) |
Creates a function, which returns an invoice payment form. This method must be called when the user presses inline button of the type inlineKeyboardButtonTypeBuy, or wants to buy access to media in a messagePaidMedia message.
Returns object_ptr<PaymentForm>.
[in] | input_invoice_ | The invoice. |
[in] | theme_ | Preferred payment form theme; pass null to use the default theme. |
|
finalvirtual |