Class TdApi.PushMessageContentPaidMedia

Enclosing class:
TdApi

public static class TdApi.PushMessageContentPaidMedia extends TdApi.PushMessageContent
A message with paid media.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    boolean
    True, if the message is a pinned message with the specified content.
    long
    Number of Telegram Stars needed to buy access to the media in the message; 0 for pinned message.
  • Constructor Summary

    Constructors
    Constructor
    Description
    A message with paid media.
    PushMessageContentPaidMedia(long starCount, boolean isPinned)
    A message with paid media.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Object

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • starCount

      public long starCount
      Number of Telegram Stars needed to buy access to the media in the message; 0 for pinned message.
    • isPinned

      public boolean isPinned
      True, if the message is a pinned message with the specified content.
    • CONSTRUCTOR

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

    • PushMessageContentPaidMedia

      public PushMessageContentPaidMedia()
      A message with paid media.
    • PushMessageContentPaidMedia

      public PushMessageContentPaidMedia(long starCount, boolean isPinned)
      A message with paid media.
      Parameters:
      starCount - Number of Telegram Stars needed to buy access to the media in the message; 0 for pinned message.
      isPinned - True, if the message is a pinned message with the specified content.
  • 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