Class TdApi.MessagePaidMedia

Enclosing class:
TdApi

public static class TdApi.MessagePaidMedia extends TdApi.MessageContent
A message with paid media.
  • Field Details

    • starCount

      public long starCount
      Number of Telegram Stars needed to buy access to the media in the message.
    • media

      public TdApi.PaidMedia[] media
      Information about the media.
    • caption

      public TdApi.FormattedText caption
      Media caption.
    • showCaptionAboveMedia

      public boolean showCaptionAboveMedia
      True, if the caption must be shown above the media; otherwise, the caption must be shown below the media.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR