SetInlineGameScore
public struct SetInlineGameScore : Codable, Equatable, TDFunction
Updates the game score of the specified user in a game; for bots only
-
Undocumented
Declaration
Swift
public typealias Result = Ok -
Inline message identifier
Declaration
Swift
public let inlineMessageId: String -
True, if the message should be edited
Declaration
Swift
public let editMessage: Bool -
User identifier
Declaration
Swift
public let userId: Int32 -
The new score
Declaration
Swift
public let score: Int32 -
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
Declaration
Swift
public let force: Bool -
Updates the game score of the specified user in a game; for bots only
Declaration
Swift
public init(inlineMessageId: String, editMessage: Bool, userId: Int32, score: Int32, force: Bool)Parameters
inlineMessageIdInline message identifier
editMessageTrue, if the message should be edited
userIdUser identifier
scoreThe new score
forcePass true to update the score even if it decreases. If the score is 0, the user will be deleted from the high score table
View on GitHub
Install in Dash
SetInlineGameScore Structure Reference