Airgram

Guides
/
/
Methods

api.getGameHighScores()

Returns the high scores for a game and some part of the high score table in the range of the specified user; for bots only

Parameters GetGameHighScoresParams:

NameTypeDescription
chatIdnumber The chat that contains the message with the game
messageIdnumber Identifier of the message
userIdnumber User identifier
Returns ApiResponse interface:
interface ApiResponse {
  _: 'getGameHighScores' | 'error'
  airgram: Airgram
  request: {
    method: 'getGameHighScores'
    params: GetGameHighScoresParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}