public static class TdApi.SetGameScore extends TdApi.Function
Returns Message
TdApi.Function.Constructors
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
True, if the message needs to be edited.
|
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() |
toString
public 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
- 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