java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.MessageContent
it.tdlight.jni.TdApi.MessageInvoice
- Enclosing class:
- TdApi
A message with an invoice from a bot.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Currency for the product price.Product description.boolean
True, if the invoice is a test invoice.boolean
True, if the shipping address must be specified.Product photo; may be null.long
The identifier of the message with the receipt, after the product has been purchased.Unique invoice bot startParameter.Product title.long
Product total price in the smallest units of the currency. -
Constructor Summary
ConstructorDescriptionA message with an invoice from a bot.MessageInvoice
(DataInput input) A message with an invoice from a bot.MessageInvoice
(String title, String description, TdApi.Photo photo, String currency, long totalAmount, String startParameter, boolean isTest, boolean needShippingAddress, long receiptMessageId) A message with an invoice from a bot. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
title
Product title. -
description
Product description. -
photo
Product photo; may be null. -
currency
Currency for the product price. -
totalAmount
public long totalAmountProduct total price in the smallest units of the currency. -
startParameter
Unique invoice bot startParameter. To share an invoice use the URL https://t.me/{botUsername}?start={startParameter}. -
isTest
public boolean isTestTrue, if the invoice is a test invoice. -
needShippingAddress
public boolean needShippingAddressTrue, if the shipping address must be specified. -
receiptMessageId
public long receiptMessageIdThe identifier of the message with the receipt, after the product has been purchased. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
MessageInvoice
public MessageInvoice()A message with an invoice from a bot. -
MessageInvoice
public MessageInvoice(String title, String description, TdApi.Photo photo, String currency, long totalAmount, String startParameter, boolean isTest, boolean needShippingAddress, long receiptMessageId) A message with an invoice from a bot.- Parameters:
title
- String Product title.description
- String Product description.photo
- Photo Product photo; may be null.currency
- String Currency for the product price.totalAmount
- long Product total price in the smallest units of the currency.startParameter
- String Unique invoice bot startParameter. To share an invoice use the URL https://t.me/{botUsername}?start={startParameter}.isTest
- boolean True, if the invoice is a test invoice.needShippingAddress
- boolean True, if the shipping address must be specified.receiptMessageId
- long The identifier of the message with the receipt, after the product has been purchased.
-
MessageInvoice
A message with an invoice from a bot.- 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()
-