Class TdApi.InputMessagePaidMedia

Enclosing class:
TdApi

public static class TdApi.InputMessagePaidMedia extends TdApi.InputMessageContent
A message with paid media; can be used only in channel chats with supergroupFullInfo.hasPaidMediaAllowed.
  • Field Details

    • starCount

      public long starCount
      The number of stars that must be paid to see the media; 1-getOption("paid_media_message_star_count_max").
    • paidMedia

      public TdApi.InputPaidMedia[] paidMedia
      The content of the paid media.
    • caption

      public TdApi.FormattedText caption
      Message caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.
    • showCaptionAboveMedia

      public boolean showCaptionAboveMedia
      True, if the caption must be shown above the video; otherwise, the caption must be shown below the video; not supported in secret chats.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • InputMessagePaidMedia

      public InputMessagePaidMedia()
      A message with paid media; can be used only in channel chats with supergroupFullInfo.hasPaidMediaAllowed.
    • InputMessagePaidMedia

      public InputMessagePaidMedia(long starCount, TdApi.InputPaidMedia[] paidMedia, TdApi.FormattedText caption, boolean showCaptionAboveMedia)
      A message with paid media; can be used only in channel chats with supergroupFullInfo.hasPaidMediaAllowed.
      Parameters:
      starCount - The number of 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 video; otherwise, the caption must be shown below the video; not supported in secret chats.
  • Method Details