Skip to content

Commit

Permalink
getGameHighScores returns a list of high scores
Browse files Browse the repository at this point in the history
  • Loading branch information
drifteri committed Jun 18, 2024
1 parent 2af2a43 commit 23e25e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,8 @@ func (b *Bot) SetGameScore(ctx context.Context, params *SetGameScoreParams) (*mo
}

// GetGameHighScores https://core.telegram.org/bots/api#getgamehighscores
func (b *Bot) GetGameHighScores(ctx context.Context, params *GetGameHighScoresParams) (*models.GameHighScore, error) {
result := &models.GameHighScore{}
func (b *Bot) GetGameHighScores(ctx context.Context, params *GetGameHighScoresParams) ([]*models.GameHighScore, error) {
var result []*models.GameHighScore
err := b.rawRequest(ctx, "getGameHighScores", params, result)
return result, err
}

0 comments on commit 23e25e8

Please sign in to comment.