Package org.drinkless.tdlib
Class TdApi.PrepaidGiveaway
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.PrepaidGiveaway
- Enclosing class:
- TdApi
Describes a prepaid giveaway.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
The number of boosts received by the chat from the giveaway; for Telegram Star giveaways only.static final int
Identifier uniquely determining type of the object.long
Unique identifier of the prepaid giveaway.int
Point in time (Unix timestamp) when the giveaway was paid.Prize of the giveaway.int
Number of users which will receive giveaway prize. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes a prepaid giveaway.PrepaidGiveaway
(long id, int winnerCount, TdApi.GiveawayPrize prize, int boostCount, int paymentDate) Describes a prepaid giveaway. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
id
public long idUnique identifier of the prepaid giveaway. -
winnerCount
public int winnerCountNumber of users which will receive giveaway prize. -
prize
Prize of the giveaway. -
boostCount
public int boostCountThe number of boosts received by the chat from the giveaway; for Telegram Star giveaways only. -
paymentDate
public int paymentDatePoint in time (Unix timestamp) when the giveaway was paid. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
PrepaidGiveaway
public PrepaidGiveaway()Describes a prepaid giveaway. -
PrepaidGiveaway
public PrepaidGiveaway(long id, int winnerCount, TdApi.GiveawayPrize prize, int boostCount, int paymentDate) Describes a prepaid giveaway.- Parameters:
id
- Unique identifier of the prepaid giveaway.winnerCount
- Number of users which will receive giveaway prize.prize
- Prize of the giveaway.boostCount
- The number of boosts received by the chat from the giveaway; for Telegram Star giveaways only.paymentDate
- Point in time (Unix timestamp) when the giveaway was paid.
-
-
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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-