getGameHighScoresInline
Retrieves high score table data for an inline game, returning the specified user's score plus their closest neighbors so you can display ranked leaderboards in your bot.
Instructions
Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in an inline game. On success, returns an Array of GameHighScore objects.
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 his neighbors are not among them. Please note that this behavior is subject to change.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inline_message_id": "<inline_message_id>",
"user_id": "<user_id>"
},
"name": "getGameHighScoresInline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | Target user id | |
| inline_message_id | Yes | Identifier of the inline message |