v1

latestOpenAPI 3.0.02026-07-1374103805.5 KB

Use this method to set the score of the specified user in a game. On success, if the message was sent by the bot, returns the edited Message, otherwise returns True. Returns an error, if the new score is not greater than the user's current score in the chat and force is False.

post/setGameScore

Request body

user_idinteger required

User identifier

scoreinteger required

New score, must be non-negative

forceboolean

Pass True, if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters

disable_edit_messageboolean

Pass True, if the game message should not be automatically edited to include the current scoreboard

chat_idinteger

Required if inline_message_id is not specified. Unique identifier for the target chat

message_idinteger

Required if inline_message_id is not specified. Identifier of the sent message

inline_message_idstring

Required if chat_id and message_id are not specified. Identifier of the inline message

Response

okboolean required