Class TdApi.SetInlineGameScore

Enclosing class:
TdApi

public static class TdApi.SetInlineGameScore
extends TdApi.Function
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
      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

    • 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, int 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 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.
    • SetInlineGameScore

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