Package org.drinkless.tdlib
Class TdApi.MessagePaidMedia
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.MessageContent
org.drinkless.tdlib.TdApi.MessagePaidMedia
- Enclosing class:
- TdApi
A message with paid media.
-
Field Summary
FieldsModifier and TypeFieldDescriptionMedia caption.static final int
Identifier uniquely determining type of the object.Information about the media.boolean
True, if the caption must be shown above the media; otherwise, the caption must be shown below the media.long
Number of Telegram Stars needed to buy access to the media in the message. -
Constructor Summary
ConstructorsConstructorDescriptionA message with paid media.MessagePaidMedia
(long starCount, TdApi.PaidMedia[] media, TdApi.FormattedText caption, boolean showCaptionAboveMedia) A message with paid media. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
starCount
public long starCountNumber of Telegram Stars needed to buy access to the media in the message. -
media
Information about the media. -
caption
Media caption. -
showCaptionAboveMedia
public boolean showCaptionAboveMediaTrue, if the caption must be shown above the media; otherwise, the caption must be shown below the media. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessagePaidMedia
public MessagePaidMedia()A message with paid media. -
MessagePaidMedia
public MessagePaidMedia(long starCount, TdApi.PaidMedia[] media, TdApi.FormattedText caption, boolean showCaptionAboveMedia) A message with paid media.- Parameters:
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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-