Package org.drinkless.tdlib
Class TdApi.MessageInvoice
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.MessageContent
-
- org.drinkless.tdlib.TdApi.MessageInvoice
-
- Enclosing class:
- TdApi
public static class TdApi.MessageInvoice extends TdApi.MessageContent
A message with an invoice from a bot.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.StringcurrencyCurrency for the product price.StringdescriptionProduct description.booleanisTestTrue, if the invoice is a test invoice.booleanneedShippingAddressTrue, if the shipping address must be specified.TdApi.PhotophotoProduct photo; may be null.longreceiptMessageIdThe identifier of the message with the receipt, after the product has been purchased.StringstartParameterUnique invoice bot startParameter.StringtitleProduct title.longtotalAmountProduct total price in the smallest units of the currency.
-
Constructor Summary
Constructors Constructor Description MessageInvoice()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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
title
public String title
Product title.
-
description
public String description
Product description.
-
photo
public TdApi.Photo photo
Product photo; may be null.
-
currency
public String currency
Currency for the product price.
-
totalAmount
public long totalAmount
Product total price in the smallest units of the currency.
-
startParameter
public String startParameter
Unique invoice bot startParameter. To share an invoice use the URL https://t.me/{botUsername}?start={startParameter}.
-
isTest
public boolean isTest
True, if the invoice is a test invoice.
-
needShippingAddress
public boolean needShippingAddress
True, if the shipping address must be specified.
-
receiptMessageId
public long receiptMessageId
The identifier of the message with the receipt, after the product has been purchased.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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- 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 share an invoice use the URL https://t.me/{botUsername}?start={startParameter}.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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-