public static class TdApi.InputMessagePaidMedia extends TdApi.InputMessageContent
| Modifier and Type | Field and Description |
|---|---|
TdApi.FormattedText |
caption
Message caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.InputPaidMedia[] |
paidMedia
The content of the paid media.
|
java.lang.String |
payload
Bot-provided data for the paid media; bots only.
|
boolean |
showCaptionAboveMedia
True, if the caption must be shown above the media; otherwise, the caption must be shown below the media; not supported in secret chats.
|
long |
starCount
The number of Telegram Stars that must be paid to see the media; 1-getOption("paid_media_message_star_count_max").
|
| Constructor and Description |
|---|
InputMessagePaidMedia()
A message with paid media; can be used only in channel chats with supergroupFullInfo.hasPaidMediaAllowed.
|
InputMessagePaidMedia(long starCount,
TdApi.InputPaidMedia[] paidMedia,
TdApi.FormattedText caption,
boolean showCaptionAboveMedia,
java.lang.String payload)
A message with paid media; can be used only in channel chats with supergroupFullInfo.hasPaidMediaAllowed.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long starCount
public TdApi.InputPaidMedia[] paidMedia
public TdApi.FormattedText caption
public boolean showCaptionAboveMedia
public java.lang.String payload
public static final int CONSTRUCTOR
public InputMessagePaidMedia()
public InputMessagePaidMedia(long starCount,
TdApi.InputPaidMedia[] paidMedia,
TdApi.FormattedText caption,
boolean showCaptionAboveMedia,
java.lang.String payload)
starCount - The number of Telegram Stars that must be paid to see the media; 1-getOption("paid_media_message_star_count_max").paidMedia - The content of the paid media.caption - Message caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.showCaptionAboveMedia - True, if the caption must be shown above the media; otherwise, the caption must be shown below the media; not supported in secret chats.payload - Bot-provided data for the paid media; bots only.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object