libtd-ktx / kotlinx.telegram.extensions / ChatKtx / setGameScore
setGameScore
open suspend fun
Chat
.setGameScore(messageId:
Long
, editMessage:
Boolean
, userId:
Int
, score:
Int
, force:
Boolean
):
Message
Suspend function, which updates the game score of the specified user in the game; for bots only.
Parameters
messageId
- Identifier of the message.
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.
Return TdApi.Message Describes a message.