Interface SetInlineGameScore

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

interface SetInlineGameScore {
    @type: "setInlineGameScore";
    edit_message?: boolean;
    force?: boolean;
    inline_message_id: string;
    score: number;
    user_id: number;
}

Properties

@type: "setInlineGameScore"
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.

inline_message_id: string

Inline message identifier.

score: number

The new score.

user_id: number

User identifier.