SetGameScoreRequest

data class SetGameScoreRequest(user_id: Long, score: Long, force: Boolean?, disable_edit_message: Boolean?, chat_id: Long?, message_id: Long?, inline_message_id: String?) : TelegramRequest

Use this method to set the score of the specified user in a game message. On success, if the message is not an inline message, the Message is returned, otherwise True is returned. Returns an error, if the new score is not greater than the user's current score in the chat and force is False.

Constructors

SetGameScoreRequest
Link copied to clipboard
fun SetGameScoreRequest(user_id: Long, score: Long, force: Boolean? = null, disable_edit_message: Boolean? = null, chat_id: Long? = null, message_id: Long? = null, inline_message_id: String? = null)

Properties

chat_id
Link copied to clipboard
val chat_id: Long? = null
Required if inline_message_id is not specified.
disable_edit_message
Link copied to clipboard
val disable_edit_message: Boolean? = null
Pass True, if the game message should not be automatically edited to include the current scoreboard
force
Link copied to clipboard
val force: Boolean? = null
Pass True, if the high score is allowed to decrease.
inline_message_id
Link copied to clipboard
val inline_message_id: String? = null
Required if chat_id and message_id are not specified.
message_id
Link copied to clipboard
val message_id: Long? = null
Required if inline_message_id is not specified.
score
Link copied to clipboard
val score: Long
New score, must be non-negative
user_id
Link copied to clipboard
val user_id: Long
User identifier