Package org.drinkless.tdlib
Class TdApi.PushMessageContentGift
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.PushMessageContent
org.drinkless.tdlib.TdApi.PushMessageContentGift
- Enclosing class:
- TdApi
A message with a gift.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.booleanTrue, if the message is about prepaid upgrade of the gift by another user instead of actual receiving of a new gift.longNumber of Telegram Stars that sender paid for the gift. -
Constructor Summary
ConstructorsConstructorDescriptionA message with a gift.PushMessageContentGift(long starCount, boolean isPrepaidUpgrade) A message with a gift. -
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 sender paid for the gift. -
isPrepaidUpgrade
public boolean isPrepaidUpgradeTrue, if the message is about prepaid upgrade of the gift by another user instead of actual receiving of a new gift. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
PushMessageContentGift
public PushMessageContentGift()A message with a gift. -
PushMessageContentGift
public PushMessageContentGift(long starCount, boolean isPrepaidUpgrade) A message with a gift.- Parameters:
starCount- Number of Telegram Stars that sender paid for the gift.isPrepaidUpgrade- True, if the message is about prepaid upgrade of the gift by another user instead of actual receiving of a new gift.
-
-
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
-