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

    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