setGameScoreInline method

Future<bool> setGameScoreInline(
  1. int userId,
  2. int score, {
  3. bool? force,
  4. bool? disableEditMessage,
  5. String? inlineMessageId,
})
inherited

Use this method to set the score of the specified user in a game message.

On success, True is returned.

Returns an error, if the new score is not greater than the user's current score in the chat and force is False.

Implementation

Future<bool> setGameScoreInline(
  int userId,
  int score, {
  bool? force,
  bool? disableEditMessage,
  String? inlineMessageId,
}) {
  return _client.apiCall(_token, 'setGameScore', {
    'user_id': userId,
    'score': score,
    'force': force,
    'disable_edit_message': disableEditMessage,
    'inline_message_id': inlineMessageId,
  });
}