Class TdApi.MessageInvoice
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.MessageContent
dev.voroby.springframework.telegram.client.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.boolean
True, if the invoice is a test invoice.boolean
True, if the shipping address must be specified.Extended media attached to the invoice; may be null if none.Extended media caption; may be null if none.Information about the product.long
The identifier of the message with the receipt, after the product has been purchased.Unique invoice bot startParameter to be passed to getInternalLink.long
Product total price in the smallest units of the currency. -
Constructor Summary
ConstructorDescriptionA message with an invoice from a bot.MessageInvoice
(TdApi.ProductInfo productInfo, String currency, long totalAmount, String startParameter, boolean isTest, boolean needShippingAddress, long receiptMessageId, TdApi.PaidMedia paidMedia, TdApi.FormattedText paidMediaCaption) A message with an invoice from a bot. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
productInfo
Information about the product. -
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. -
paidMedia
Extended media attached to the invoice; may be null if none. -
paidMediaCaption
Extended media caption; may be null if none. -
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(TdApi.ProductInfo productInfo, String currency, long totalAmount, String startParameter, boolean isTest, boolean needShippingAddress, long receiptMessageId, TdApi.PaidMedia paidMedia, TdApi.FormattedText paidMediaCaption) A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice.- Parameters:
productInfo
- Information about the product.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.paidMedia
- Extended media attached to the invoice; may be null if none.paidMediaCaption
- Extended media caption; may be null if none.
-
-
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
-