public static class TdApi.InputMessageInvoice extends TdApi.InputMessageContent
TdApi.InputMessageContent.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
description
Product description; 0-255 characters.
|
TdApi.Invoice |
invoice
Invoice.
|
byte[] |
payload
The invoice payload.
|
int |
photoHeight
Product photo height.
|
int |
photoSize
Product photo size.
|
java.lang.String |
photoUrl
Product photo URL; optional.
|
int |
photoWidth
Product photo width.
|
java.lang.String |
providerData
JSON-encoded data about the invoice, which will be shared with the payment provider.
|
java.lang.String |
providerToken
Payment provider token.
|
java.lang.String |
startParameter
Unique invoice bot deep link parameter for the generation of this invoice.
|
java.lang.String |
title
Product title; 1-32 characters.
|
Constructor and Description |
---|
InputMessageInvoice()
A message with an invoice; can be used only by bots.
|
InputMessageInvoice(TdApi.Invoice invoice,
java.lang.String title,
java.lang.String description,
java.lang.String photoUrl,
int photoSize,
int photoWidth,
int photoHeight,
byte[] payload,
java.lang.String providerToken,
java.lang.String providerData,
java.lang.String startParameter)
A message with an invoice; can be used only by bots.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public TdApi.Invoice invoice
public java.lang.String title
public java.lang.String description
public java.lang.String photoUrl
public int photoSize
public int photoWidth
public int photoHeight
public byte[] payload
public java.lang.String providerToken
public java.lang.String providerData
public java.lang.String startParameter
public static final int CONSTRUCTOR
public InputMessageInvoice()
public InputMessageInvoice(TdApi.Invoice invoice, java.lang.String title, java.lang.String description, java.lang.String photoUrl, int photoSize, int photoWidth, int photoHeight, byte[] payload, java.lang.String providerToken, java.lang.String providerData, java.lang.String startParameter)
invoice
- Invoice.title
- Product title; 1-32 characters.description
- Product description; 0-255 characters.photoUrl
- Product photo URL; optional.photoSize
- Product photo size.photoWidth
- Product photo width.photoHeight
- Product photo height.payload
- The invoice payload.providerToken
- Payment provider token.providerData
- JSON-encoded data about the invoice, which will be shared with the payment provider.startParameter
- Unique invoice bot deep link parameter for the generation of this invoice. If empty, it would be possible to pay directly from forwards of the invoice message.public int getConstructor()
getConstructor
in class TdApi.InputMessageContent