Package org.drinkless.tdlib
Class TdApi.InputMessageInvoice
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.InputMessageContent
-
- org.drinkless.tdlib.TdApi.InputMessageInvoice
-
- Enclosing class:
- TdApi
public static class TdApi.InputMessageInvoice extends TdApi.InputMessageContent
A message with an invoice; can be used only by bots.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.StringdescriptionProduct description; 0-255 characters.TdApi.InvoiceinvoiceInvoice.byte[]payloadThe invoice payload.intphotoHeightProduct photo height.intphotoSizeProduct photo size.StringphotoUrlProduct photo URL; optional.intphotoWidthProduct photo width.StringproviderDataJSON-encoded data about the invoice, which will be shared with the payment provider.StringproviderTokenPayment provider token.StringstartParameterUnique invoice bot deep link parameter for the generation of this invoice.StringtitleProduct title; 1-32 characters.
-
Constructor Summary
Constructors Constructor Description InputMessageInvoice()A message with an invoice; can be used only by bots.InputMessageInvoice(TdApi.Invoice invoice, String title, String description, String photoUrl, int photoSize, int photoWidth, int photoHeight, byte[] payload, String providerToken, String providerData, String startParameter)A message with an invoice; can be used only by bots.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
invoice
public TdApi.Invoice invoice
Invoice.
-
title
public String title
Product title; 1-32 characters.
-
description
public String description
Product description; 0-255 characters.
-
photoUrl
public String photoUrl
Product photo URL; optional.
-
photoSize
public int photoSize
Product photo size.
-
photoWidth
public int photoWidth
Product photo width.
-
photoHeight
public int photoHeight
Product photo height.
-
payload
public byte[] payload
The invoice payload.
-
providerToken
public String providerToken
Payment provider token.
-
providerData
public String providerData
JSON-encoded data about the invoice, which will be shared with the payment provider.
-
startParameter
public String startParameter
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.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InputMessageInvoice
public InputMessageInvoice()
A message with an invoice; can be used only by bots.
-
InputMessageInvoice
public InputMessageInvoice(TdApi.Invoice invoice, String title, String description, String photoUrl, int photoSize, int photoWidth, int photoHeight, byte[] payload, String providerToken, String providerData, String startParameter)
A message with an invoice; can be used only by bots.- Parameters:
invoice- Invoice.title- Product title; 1-32 characters.description- Product description; 0-255 characters.photoUrl- Product photo URL; optional.photoSize- Product photo size.photoWidth- Product photo width.photoHeight- Product photo height.payload- The invoice payload.providerToken- Payment provider token.providerData- JSON-encoded data about the invoice, which will be shared with the payment provider.startParameter- 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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-