Skip to content

setGameScore

Sahri Riza Umami edited this page Dec 8, 2016 · 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)
Option Description
chat_id Chat a message with the game belongs to.
message_id Identifier of the message.
edit_message True, if message should be edited.
user_id User identifier.
score New score
force Pass True to update the score even if it decreases. If score is 0, user will be deleted from the high scores table.

Example

setGameScore(chat_id, message_id, edit_message, user_id, score, force)

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally