setInlineGameScore - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / setInlineGameScore

setInlineGameScore

suspend fun TelegramFlow.setInlineGameScore(inlineMessageId: String?, editMessage: Boolean, userId: Int, 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.

userId - User identifier.

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.