setGameScoreInline
Set or update the score of a specified user in an inline game message; optionally allow lower scores for corrections or cheating bans and skip automatic scoreboard edits.
Instructions
Use this method to set the score of the specified user in a game message. On success, if the message is not an inline message, the Message is returned, otherwise True is returned. Returns an error, if the new score is not greater than the user's current score in the chat and force is False.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inline_message_id": "<inline_message_id>",
"user_id": "<user_id>",
"score": "<score>"
},
"name": "setGameScoreInline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Pass True if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters. | |
| score | Yes | New score, must be non-negative | |
| user_id | Yes | User identifier | |
| inline_message_id | Yes | Identifier of the inline message | |
| disable_edit_message | No | Pass True if the game message should not be automatically edited to include the current scoreboard |