public static class TdApi.MessageInvoice extends TdApi.MessageContent
TdApi.MessageContent.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
currency
Currency for the product price.
|
java.lang.String |
description
Product description.
|
boolean |
isTest
True, if the invoice is a test invoice.
|
boolean |
needShippingAddress
True, if the shipping address must be specified.
|
TdApi.Photo |
photo
Product photo; may be null.
|
long |
receiptMessageId
The identifier of the message with the receipt, after the product has been purchased.
|
java.lang.String |
startParameter
Unique invoice bot startParameter.
|
java.lang.String |
title
Product title.
|
long |
totalAmount
Product total price in the smallest units of the currency.
|
Constructor and Description |
---|
MessageInvoice()
A message with an invoice from a bot.
|
MessageInvoice(java.lang.String title,
java.lang.String description,
TdApi.Photo photo,
java.lang.String currency,
long totalAmount,
java.lang.String startParameter,
boolean isTest,
boolean needShippingAddress,
long receiptMessageId)
A message with an invoice from a bot.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public java.lang.String title
public java.lang.String description
@Nullable public TdApi.Photo photo
public java.lang.String currency
public long totalAmount
public java.lang.String startParameter
public boolean isTest
public boolean needShippingAddress
public long receiptMessageId
public static final int CONSTRUCTOR
public MessageInvoice()
public MessageInvoice(java.lang.String title, java.lang.String description, TdApi.Photo photo, java.lang.String currency, long totalAmount, java.lang.String startParameter, boolean isTest, boolean needShippingAddress, long receiptMessageId)
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.public int getConstructor()
getConstructor
in class TdApi.MessageContent