public static class TdApi.InputMessageInvoice extends TdApi.InputMessageContent
| 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.
|
TdApi.InputPaidMedia |
paidMedia
The content of paid media attached to the invoice; pass null if none.
|
TdApi.FormattedText |
paidMediaCaption
Paid media caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
|
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; may be empty for payments in Telegram Stars.
|
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,
TdApi.InputPaidMedia paidMedia,
TdApi.FormattedText paidMediaCaption)
A message with an invoice; can be used only by bots.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic 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 TdApi.InputPaidMedia paidMedia
public TdApi.FormattedText paidMediaCaption
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, TdApi.InputPaidMedia paidMedia, TdApi.FormattedText paidMediaCaption)
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; may be empty for payments in Telegram Stars.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.paidMedia - The content of paid media attached to the invoice; pass null if none.paidMediaCaption - Paid media caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object