libtd-ktx / kotlinx.telegram.extensions / UserKtx / setInlineGameScore
setInlineGameScore
open suspend fun User.setInlineGameScore(inlineMessageId: String?, editMessage: Boolean, score: Int, force: Boolean): Unit
Suspend function, which updates the game score of the specified user in a game; for bots only.
Parameters
inlineMessageId - Inline message identifier.
editMessage - True, if the message should be edited.
score - The new score.
force - Pass true to update the score even if it decreases. If the score is 0, the user
will be deleted from the high score table.