Class TdApi.PushMessageContentPremiumGiveaway

Enclosing class:
TdApi

public static class TdApi.PushMessageContentPremiumGiveaway extends TdApi.PushMessageContent
A message with a Telegram Premium giveaway.
  • 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.
    int
    Number of months the Telegram Premium subscription will be active after code activation; 0 for pinned message.
    int
    Number of users which will receive Telegram Premium subscription gift codes; 0 for pinned message.
  • Constructor Summary

    Constructors
    Constructor
    Description
    A message with a Telegram Premium giveaway.
    PushMessageContentPremiumGiveaway(int winnerCount, int monthCount, boolean isPinned)
    A message with a Telegram Premium giveaway.
  • Method Summary

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

    Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object

    toString

    Methods inherited from class java.lang.Object

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

    • winnerCount

      public int winnerCount
      Number of users which will receive Telegram Premium subscription gift codes; 0 for pinned message.
    • monthCount

      public int monthCount
      Number of months the Telegram Premium subscription will be active after code activation; 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

    • PushMessageContentPremiumGiveaway

      public PushMessageContentPremiumGiveaway()
      A message with a Telegram Premium giveaway.
    • PushMessageContentPremiumGiveaway

      public PushMessageContentPremiumGiveaway(int winnerCount, int monthCount, boolean isPinned)
      A message with a Telegram Premium giveaway.
      Parameters:
      winnerCount - Number of users which will receive Telegram Premium subscription gift codes; 0 for pinned message.
      monthCount - Number of months the Telegram Premium subscription will be active after code activation; 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