get_game_high_scores#

template<class Agent>
api_result<array_t<game_high_score_t>, Agent&&> get_game_high_scores(Agent &&agent, get_game_high_scores_args_t args)#

agent is any object satisfying agent concept.

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. 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.

struct get_game_high_scores_args_t#

Arguments that should be passed to get_game_high_scores().

integer_t user_id#

Target user id

optional_t<integer_t> chat_id#

Required if inline_message_id is not specified. Unique identifier for the target chat

optional_t<integer_t> message_id#

Required if inline_message_id is not specified. Identifier of the sent message

optional_t<string_t> inline_message_id#

Required if chat_id and message_id are not specified. Identifier of the inline message