Skip to content

Commit

Permalink
Take a reference to results
Browse files Browse the repository at this point in the history
  • Loading branch information
drifteri committed Jun 18, 2024
1 parent 23e25e8 commit 301e5fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,6 @@ 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) {
var result []*models.GameHighScore
err := b.rawRequest(ctx, "getGameHighScores", params, result)
err := b.rawRequest(ctx, "getGameHighScores", params, &result)
return result, err
}

0 comments on commit 301e5fa

Please sign in to comment.