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. Use getInternalLink with
internalLinkTypeBotStart to share the invoice.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Currency for the product price.Product description.Extended media attached to the invoice; may be null.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 to be passed to getInternalLink.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, TdApi.FormattedText description, TdApi.Photo photo, String currency, long totalAmount, String startParameter, boolean isTest, boolean needShippingAddress, long receiptMessageId, TdApi.MessageExtendedMedia extendedMedia) A message with an invoice from a bot. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods 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 be passed to getInternalLink. -
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. -
extendedMedia
Extended media attached to the invoice; may be null. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessageInvoice
public MessageInvoice()A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice. -
MessageInvoice
public MessageInvoice(String title, TdApi.FormattedText description, TdApi.Photo photo, String currency, long totalAmount, String startParameter, boolean isTest, boolean needShippingAddress, long receiptMessageId, TdApi.MessageExtendedMedia extendedMedia) A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice.- Parameters:
title
- Product title.description
- Product description.photo
- Product photo; may be null.currency
- Currency for the product price.totalAmount
- Product total price in the smallest units of the currency.startParameter
- Unique invoice bot startParameter to be passed to getInternalLink.isTest
- True, if the invoice is a test invoice.needShippingAddress
- True, if the shipping address must be specified.receiptMessageId
- The identifier of the message with the receipt, after the product has been purchased.extendedMedia
- Extended media attached to the invoice; may be null.
-
MessageInvoice
A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
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
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-