Skip to content

setGameScore

Sahri Riza Umami edited this page Sep 17, 2017 · 2 revisions

Bots only.
Updates game score of the specified user in the game.

setGameScore(chat_id, message_id, edit_message, user_id, score, force)
Field Type Description
chat_id int53 Chat a message with the game belongs to
message_id int53 Identifier of the message
edit_message Bool True, if message should be edited
user_id int32 User identifier
score int32 New score
force Bool Pass True to update the score even if it decreases. If score is 0, user will be deleted from the high scores table

Frequently Asked Questions
The Functions

Clone this wiki locally