setGameScore
Update a user's score in a Telegram game message. Use force to allow decreasing a high score when fixing mistakes or banning cheaters.
Instructions
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.
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 | |
| chat_id | No | Required if inline_message_id is not specified. Unique identifier for the target chat. | |
| user_id | Yes | User identifier | |
| message_id | No | Required if inline_message_id is not specified. Identifier of the sent message. | |
| inline_message_id | No | Required if chat_id and message_id are not specified. 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. |