public static class TdApi.SetGameScore extends TdApi.Function<TdApi.Message>
Returns Message
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
The chat to which the message with the game belongs.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
editMessage
Pass true to edit the game message to include the current scoreboard.
|
boolean |
force
Pass true to update the score even if it decreases.
|
long |
messageId
Identifier of the message.
|
int |
score
The new score.
|
long |
userId
User identifier.
|
| Constructor and Description |
|---|
SetGameScore()
Default constructor for a function, which updates the game score of the specified user in the game; for bots only.
|
SetGameScore(long chatId,
long messageId,
boolean editMessage,
long userId,
int score,
boolean force)
Creates a function, which updates the game score of the specified user in the game; for bots only.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public long messageId
public boolean editMessage
public long userId
public int score
public boolean force
public static final int CONSTRUCTOR
public SetGameScore()
Returns Message
public SetGameScore(long chatId,
long messageId,
boolean editMessage,
long userId,
int score,
boolean force)
Returns Message
chatId - The chat to which the message with the game belongs.messageId - Identifier of the message.editMessage - Pass true to edit the game message to include the current scoreboard.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()
TdApi.ObjectgetConstructor in class TdApi.Object