Interface SetGameScore

Updates the game score of the specified user in the game; for bots only. Request type for Tdjson#setGameScore.

interface SetGameScore {
    @type: "setGameScore";
    chat_id: number;
    edit_message?: boolean;
    force?: boolean;
    message_id: number;
    score: number;
    user_id: number;
}

Properties

@type: "setGameScore"
chat_id: number

The chat to which the message with the game belongs.

edit_message?: boolean

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

force?: boolean

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.

message_id: number

Identifier of the message.

score: number

The new score.

user_id: number

User identifier.