Telegram Bot API

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 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 their neighbors are not among them. Please note that this behavior is subject to change.

post/getGameHighScores

Request

  • Base URL: https://api.telegram.org/bot<bot_token>
  • URL: https://api.telegram.org/bot<bot_token>/getGameHighScores
  • Auth: none declared

Request body

user_idinteger required

Target user id

chat_idinteger

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

message_idinteger

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

inline_message_idstring

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

Response

Telegram API response

oktrue required

Changes

    • info

      added the optional property //////// to the response with the status