Package it.tdlight.jni
Class TdApi.InputMessageInvoice
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.InputMessageContent
it.tdlight.jni.TdApi.InputMessageInvoice
- Enclosing class:
- TdApi
public static class TdApi.InputMessageInvoice extends TdApi.InputMessageContent
A message with an invoice; can be used
only by bots and only in private chats.
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
String
description
Product description; 0-255 characters.TdApi.Invoice
invoice
Invoice.byte[]
payload
The invoice payload.int
photoHeight
Product photo height.int
photoSize
Product photo size.String
photoUrl
Product photo URL; optional.int
photoWidth
Product photo width.String
providerData
JSON-encoded data about the invoice, which will be shared with the payment provider.String
providerToken
Payment provider token.String
startParameter
Unique invoice bot startParameter for the generation of this invoice.String
title
Product title; 1-32 characters. -
Constructor Summary
Constructors Constructor Description InputMessageInvoice()
A message with an invoice; can be used only by bots and only in private chats.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 and only in private chats.InputMessageInvoice(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutput output)
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 startParameter for the generation of this invoice. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
InputMessageInvoice
public InputMessageInvoice()A message with an invoice; can be used only by bots and only in private chats. -
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 and only in private chats.- 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 startParameter for the generation of this invoice.
-
InputMessageInvoice
- 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()
-