getGameHighScores method

Future<List<GameHighScore>> getGameHighScores(
  1. int userId, {
  2. ChatID? chatId,
  3. int? messageId,
})
inherited

Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game.

On success, returns an Array of GameHighScore objects

Implementation

Future<List<GameHighScore>> getGameHighScores(
  int userId, {
  ChatID? chatId,
  int? messageId,
}) {
  return _client.apiCall(_token, 'getGameHighScores', {
    'user_id': userId,
    'chat_id': chatId,
    'message_id': messageId,
  });
}