TDLib v0.0.2 TDLib.Method.SetGameScore View Source

Updates the game score of the specified user in the game; for bots only. Returns object_ptr.

NameTypeDescription
chat_idstringThe chat to which the message with the game.
message_idstringIdentifier of the message.
edit_messageboolTrue, if the message should be edited.
user_idnumberUser identifier.
scorenumberThe new score.
forceboolPass true to update the score even if it decreases. If the score is 0, the user will be deleted from the high score table.

More details on telegram’s documentation.