public static class TdApi.SetInlineGameScore extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
editMessage
True, if the message needs to be edited.
|
boolean |
force
Pass true to update the score even if it decreases.
|
java.lang.String |
inlineMessageId
Inline message identifier.
|
int |
score
The new score.
|
long |
userId
User identifier.
|
Constructor and Description |
---|
SetInlineGameScore()
Default constructor for a function, which updates the game score of the specified user in a game; for bots only.
|
SetInlineGameScore(java.lang.String inlineMessageId,
boolean editMessage,
long userId,
int score,
boolean force)
Creates a function, which updates the game score of the specified user in a game; for bots only.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public java.lang.String inlineMessageId
public boolean editMessage
public long userId
public int score
public boolean force
public static final int CONSTRUCTOR
public SetInlineGameScore()
Returns Ok
public SetInlineGameScore(java.lang.String inlineMessageId, boolean editMessage, long userId, int score, boolean force)
Returns Ok
inlineMessageId
- Inline message identifier.editMessage
- True, if the message needs to be edited.userId
- User identifier.score
- The new score.force
- Pass true to update the score even if it decreases. If the score is 0, the user will be deleted from the high score table.public int getConstructor()
getConstructor
in class TdApi.Function