Class TdApi.PushMessageContentGiveaway

Enclosing class:
TdApi

public static class TdApi.PushMessageContentGiveaway extends TdApi.PushMessageContent
A message with a giveaway.
  • Field Details

    • winnerCount

      public int winnerCount
      Number of users which will receive giveaway prizes; 0 for pinned message.
    • prize

      public TdApi.GiveawayPrize prize
      Prize of the giveaway; may be null 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

    • PushMessageContentGiveaway

      public PushMessageContentGiveaway()
      A message with a giveaway.
    • PushMessageContentGiveaway

      public PushMessageContentGiveaway(int winnerCount, TdApi.GiveawayPrize prize, boolean isPinned)
      A message with a giveaway.
      Parameters:
      winnerCount - Number of users which will receive giveaway prizes; 0 for pinned message.
      prize - Prize of the giveaway; may be null 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