getGameHighScores¶
Returns: list[GameHighScore]
- class litegram.methods.get_game_high_scores.GetGameHighScores(*, user_id: int, chat_id: int | None = None, message_id: int | None = None, inline_message_id: str | None = None, **extra_data: Any)[source]¶
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. Returns an Array of
litegram.types.game_high_score.GameHighScoreobjects.This method will currently return scores for the target user, plus two of their closest neighbors on each side. Will also return the top three users if the user and their neighbors are not among them. Please note that this behavior is subject to change.
Source: https://core.telegram.org/bots/api#getgamehighscores
- chat_id: int | None¶
Required if inline_message_id is not specified. Unique identifier for the target chat
Usage¶
As bot method¶
result: list[GameHighScore] = await bot.get_game_high_scores(...)
Method as object¶
Imports:
from litegram.methods.get_game_high_scores import GetGameHighScoresalias:
from litegram.methods import GetGameHighScores
With specific bot¶
result: list[GameHighScore] = await bot(GetGameHighScores(...))