java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.InputMessageContent
it.tdlight.jni.TdApi.InputMessageInvoice
- Enclosing class:
- TdApi
A message with an invoice; can be used
only by bots.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Product description; 0-255 characters.Invoice.byte[]
The invoice payload.int
Product photo height.int
Product photo size.Product photo URL; optional.int
Product photo width.JSON-encoded data about the invoice, which will be shared with the payment provider.Payment provider token.Unique invoice bot deep link parameter for the generation of this invoice.Product title; 1-32 characters. -
Constructor Summary
ConstructorDescriptionA 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.InputMessageInvoice
(DataInput input) A message with an invoice; can be used only by bots. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
invoice
Invoice. -
title
Product title; 1-32 characters. -
description
Product description; 0-255 characters. -
photoUrl
Product photo URL; optional. -
photoSize
public int photoSizeProduct photo size. -
photoWidth
public int photoWidthProduct photo width. -
photoHeight
public int photoHeightProduct photo height. -
payload
public byte[] payloadThe 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. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
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 Invoice.title
- String Product title; 1-32 characters.description
- String Product description; 0-255 characters.photoUrl
- String Product photo URL; optional.photoSize
- int Product photo size.photoWidth
- int Product photo width.photoHeight
- int Product photo height.payload
- byte[] The invoice payload.providerToken
- String Payment provider token.providerData
- String JSON-encoded data about the invoice, which will be shared with the payment provider.startParameter
- String 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.
-
InputMessageInvoice
A message with an invoice; can be used only by bots.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-