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 Telegram 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 media; otherwise, the caption must be shown below the media; not supported in secret chats.
    • payload

      public String payload
      Bot-provided data for the paid media; bots only.
    • 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, String payload)
      A message with paid media; can be used only in channel chats with supergroupFullInfo.hasPaidMediaAllowed.
      Parameters:
      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.
  • Method Details