Class TdApi.SetGameScore

Enclosing class:
TdApi

public static class TdApi.SetGameScore
extends TdApi.Function
Updates the game score of the specified user in the game; for bots only.

Returns Message

  • Field Details

    • chatId

      public long chatId
      The chat to which the message with the game belongs.
    • messageId

      public long messageId
      Identifier of the message.
    • editMessage

      public boolean editMessage
      True, if the message should be edited.
    • userId

      public int userId
      User identifier.
    • score

      public int score
      The new score.
    • force

      public boolean 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.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • Constructor Details

    • SetGameScore

      public SetGameScore()
      Updates the game score of the specified user in the game; for bots only.

      Returns Message

    • SetGameScore

      public SetGameScore​(long chatId, long messageId, boolean editMessage, int userId, int score, boolean force)
      Updates the game score of the specified user in the game; for bots only.

      Returns Message

      Parameters:
      chatId - long The chat to which the message with the game belongs.
      messageId - long Identifier of the message.
      editMessage - boolean True, if the message should be edited.
      userId - int User identifier.
      score - int The new score.
      force - boolean 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.
    • SetGameScore

      public SetGameScore​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details