set_game_score


Description:

public async Message set_game_score (int64 chat_id, int64 message_id, bool edit_message, int64 user_id, int32 score, bool force) throws TDLibError

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

Parameters:

chat_id

The chat to which the message with the game belongs

message_id

Identifier of the message

edit_message

Pass true to edit the game message to include the current scoreboard

user_id

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