Skip to content

setInlineGameScore

Function · TDLib 1.8.67 · d1085f9c

Updates the game score of the specified user in a game; for bots only

setInlineGameScore(
  inline_message_id: string,
  edit_message: Bool,
  user_id: int53,
  score: int32,
  force: Bool
) → Ok

inline_message_id

string

Inline message identifier

edit_message

Bool

Pass true to edit the game message to include the current scoreboard

user_id

int53

User identifier

score

int32

The new score

force

Bool

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