Package org.drinkless.tdlib
Class TdApi.InputMessageInvoice
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.InputMessageContent
org.drinkless.tdlib.TdApi.InputMessageInvoice
- Enclosing class:
- TdApi
A message with an invoice; can be used only by bots.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.Product description; 0-255 characters.Invoice.The content of paid media attached to the invoice; pass null if none.Paid media caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.byte[]The invoice payload.intProduct photo height.intProduct photo size.Product photo URL; optional.intProduct photo width.JSON-encoded data about the invoice, which will be shared with the payment provider.Payment provider token; may be empty for payments in Telegram Stars.Unique invoice bot deep link parameter for the generation of this invoice.Product title; 1-32 characters. -
Constructor Summary
ConstructorsConstructorDescriptionA message with an invoice; can be used only by bots.InputMessageInvoice(TdApi.Invoice invoice, String title, String description, String photoUrl, int photoSize, int photoWidth, int photoHeight, byte[] payload, String providerToken, String providerData, String startParameter, TdApi.InputPaidMedia paidMedia, TdApi.FormattedText paidMediaCaption) A message with an invoice; can be used only by bots. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
invoice
Invoice. -
title
Product title; 1-32 characters. -
description
Product description; 0-255 characters. -
photoUrl
Product photo URL; optional. -
photoSize
public int photoSizeProduct photo size. -
photoWidth
public int photoWidthProduct photo width. -
photoHeight
public int photoHeightProduct photo height. -
payload
public byte[] payloadThe 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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
InputMessageInvoice
public InputMessageInvoice()A message with an invoice; can be used only by bots. -
InputMessageInvoice
public InputMessageInvoice(TdApi.Invoice invoice, String title, String description, String photoUrl, int photoSize, int photoWidth, int photoHeight, byte[] payload, String providerToken, String providerData, String startParameter, TdApi.InputPaidMedia paidMedia, TdApi.FormattedText paidMediaCaption) A message with an invoice; can be used only by bots.- Parameters:
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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-