Class TdApi.GetPaymentForm
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.PaymentForm>
dev.voroby.springframework.telegram.client.TdApi.GetPaymentForm
- Enclosing class:
- TdApi
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 PaymentForm
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.The invoice.Preferred payment form theme; pass null to use the default theme. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which returns an invoice payment form.GetPaymentForm
(TdApi.InputInvoice inputInvoice, TdApi.ThemeParameters theme) Creates a function, which returns an invoice payment form. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
inputInvoice
The invoice. -
theme
Preferred payment form theme; pass null to use the default theme. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetPaymentForm
public 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
PaymentForm
-
GetPaymentForm
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
PaymentForm
- Parameters:
inputInvoice
- The invoice.theme
- Preferred payment form theme; pass null to use the default theme.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-