Package org.drinkless.tdlib
Class TdApi.MessageGiveawayCreated
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.MessageContent
org.drinkless.tdlib.TdApi.MessageGiveawayCreated
- Enclosing class:
- TdApi
A giveaway was created for the chat. Use telegramPaymentPurposePremiumGiveaway, storePaymentPurposePremiumGiveaway, telegramPaymentPurposeStarGiveaway, or storePaymentPurposeStarGiveaway to create a giveaway.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.longNumber of Telegram Stars that will be shared by winners of the giveaway; 0 for Telegram Premium giveaways. -
Constructor Summary
ConstructorsConstructorDescriptionA giveaway was created for the chat.MessageGiveawayCreated(long starCount) A giveaway was created for the chat. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
starCount
public long starCountNumber of Telegram Stars that will be shared by winners of the giveaway; 0 for Telegram Premium giveaways. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessageGiveawayCreated
public MessageGiveawayCreated()A giveaway was created for the chat. Use telegramPaymentPurposePremiumGiveaway, storePaymentPurposePremiumGiveaway, telegramPaymentPurposeStarGiveaway, or storePaymentPurposeStarGiveaway to create a giveaway. -
MessageGiveawayCreated
public MessageGiveawayCreated(long starCount) A giveaway was created for the chat. Use telegramPaymentPurposePremiumGiveaway, storePaymentPurposePremiumGiveaway, telegramPaymentPurposeStarGiveaway, or storePaymentPurposeStarGiveaway to create a giveaway.- Parameters:
starCount- Number of Telegram Stars that will be shared by winners of the giveaway; 0 for Telegram Premium giveaways.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-