Package org.drinkless.tdlib
Class TdApi.BuyGiftUpgrade
- Enclosing class:
TdApi
Pays for upgrade of a regular gift that is owned by another user or channel chat.
Returns Ok
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.Identifier of the user or the channel chat that owns the gift.Prepaid upgrade hash as received along with the gift.longThe Telegram Star amount the user agreed to pay for the upgrade; must be equal to gift.upgradeStarCount. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which pays for upgrade of a regular gift that is owned by another user or channel chat.BuyGiftUpgrade(TdApi.MessageSender ownerId, String prepaidUpgradeHash, long starCount) Creates a function, which pays for upgrade of a regular gift that is owned by another user or channel chat. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
ownerId
Identifier of the user or the channel chat that owns the gift. -
prepaidUpgradeHash
Prepaid upgrade hash as received along with the gift. -
starCount
public long starCountThe Telegram Star amount the user agreed to pay for the upgrade; must be equal to gift.upgradeStarCount. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
BuyGiftUpgrade
public BuyGiftUpgrade()Default constructor for a function, which pays for upgrade of a regular gift that is owned by another user or channel chat.Returns
Ok -
BuyGiftUpgrade
Creates a function, which pays for upgrade of a regular gift that is owned by another user or channel chat.Returns
Ok- Parameters:
ownerId- Identifier of the user or the channel chat that owns the gift.prepaidUpgradeHash- Prepaid upgrade hash as received along with the gift.starCount- The Telegram Star amount the user agreed to pay for the upgrade; must be equal to gift.upgradeStarCount.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Function<TdApi.Ok>- Returns:
- this.CONSTRUCTOR
-