public static class TdApi.MessagePaidMedia extends TdApi.MessageContent
| Modifier and Type | Field and Description |
|---|---|
TdApi.FormattedText |
caption
Media caption.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.PaidMedia[] |
media
Information about the media.
|
boolean |
showCaptionAboveMedia
True, if the caption must be shown above the media; otherwise, the caption must be shown below the media.
|
long |
starCount
Number of Telegram Stars needed to buy access to the media in the message.
|
| Constructor and Description |
|---|
MessagePaidMedia()
A message with paid media.
|
MessagePaidMedia(long starCount,
TdApi.PaidMedia[] media,
TdApi.FormattedText caption,
boolean showCaptionAboveMedia)
A message with paid media.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long starCount
public TdApi.PaidMedia[] media
public TdApi.FormattedText caption
public boolean showCaptionAboveMedia
public static final int CONSTRUCTOR
public MessagePaidMedia()
public MessagePaidMedia(long starCount,
TdApi.PaidMedia[] media,
TdApi.FormattedText caption,
boolean showCaptionAboveMedia)
starCount - Number of Telegram Stars needed to buy access to the media in the message.media - Information about the media.caption - Media caption.showCaptionAboveMedia - True, if the caption must be shown above the media; otherwise, the caption must be shown below the media.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object