getGameHighScores

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. On success, returns an Array of GameHighScore objects.

Arguments
Name Type Description Required
user_id int | null | array Target user id no
chat_id int | null Required if inline_message_id is not specified. Unique identifier for the target chat no
message_id int | null Required if inline_message_id is not specified. Identifier of the sent message no
inline_message_id string | null Required if chat_id and message_id are not specified. Identifier of the inline message no
token string | null You can use this method on another bot with specify this parameter no
forgot bool | null You can set to not receive request result, dont set it or pass null for turn it off no
answer bool | null You can set to answer to webhook, dont set it or pass null for turn it off no

Output : BPT\types\gameHighScore[] | BPT\types\responseError | bool

Static or normal : Static

Examples :

request::getGameHighScores(['user_id' => int, 'chat_id' => int, 'message_id' => int, 'inline_message_id' => string]);
request::getGameHighScores();