Package org.drinkless.tdlib
Class TdApi.InputMessageStakeDice
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.InputMessageContent
org.drinkless.tdlib.TdApi.InputMessageStakeDice
- Enclosing class:
- TdApi
A stake dice message.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanTrue, if the chat message draft must be deleted.static final intIdentifier uniquely determining type of the object.longThe amount of Toncoins that will be staked; in the smallest units of the currency.Hash of the stake dice state. -
Constructor Summary
ConstructorsConstructorDescriptionA stake dice message.InputMessageStakeDice(String stateHash, long stakeToncoinAmount, boolean clearDraft) A stake dice message. -
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
-
stateHash
Hash of the stake dice state. The state hash can be used only if it was received recently enough. Otherwise, a new state must be requested using getStakeDiceState. -
stakeToncoinAmount
public long stakeToncoinAmountThe amount of Toncoins that will be staked; in the smallest units of the currency. Must be in the range getOption("stake_dice_stake_amount_min")-getOption("stake_dice_stake_amount_max"). -
clearDraft
public boolean clearDraftTrue, if the chat message draft must be deleted. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
InputMessageStakeDice
public InputMessageStakeDice()A stake dice message. -
InputMessageStakeDice
A stake dice message.- Parameters:
stateHash- Hash of the stake dice state. The state hash can be used only if it was received recently enough. Otherwise, a new state must be requested using getStakeDiceState.stakeToncoinAmount- The amount of Toncoins that will be staked; in the smallest units of the currency. Must be in the range getOption("stake_dice_stake_amount_min")-getOption("stake_dice_stake_amount_max").clearDraft- True, if the chat message draft must be deleted.
-
-
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
-