Module tdlight.api

Class TdApi.SetInlineGameScore

Enclosing class:
TdApi

public static final class TdApi.SetInlineGameScore extends TdApi.Function<TdApi.Ok>
Updates the game score of the specified user in a game; for bots only. Returns Ok
  • Field Details

    • inlineMessageId

      public String inlineMessageId
      Inline message identifier.
    • editMessage

      public boolean editMessage
      Pass true to edit the game message to include the current scoreboard.
    • userId

      public long 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:
  • Constructor Details

    • SetInlineGameScore

      public SetInlineGameScore()
      Updates the game score of the specified user in a game; for bots only. Returns Ok
    • SetInlineGameScore

      public SetInlineGameScore(String inlineMessageId, boolean editMessage, long userId, int score, boolean force)
      Updates the game score of the specified user in a game; for bots only. Returns Ok
      Parameters:
      inlineMessageId - String Inline message identifier.
      editMessage - boolean Pass true to edit the game message to include the current scoreboard.
      userId - long 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.
    • SetInlineGameScore

      public SetInlineGameScore(DataInput input) throws IOException
      Updates the game score of the specified user in a game; for bots only. Returns Ok
      Throws:
      IOException
  • Method Details