Class SetGameHighScoresMethod.

Use this method to get data for high score tables. Will return the score of the specified user and several of his 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 his closest neighbors on each side. Will also return the top three users if the user and his neighbors are not among them. P lease note that this behavior is subject to change

see
package Default

 Methods

create()

create(integer $userId, integer $chatId, integer $messageId) : \TgBotApi\BotApiBase\Method\GetGameHighScoresMethod
Static

Parameters

$userId

integer

$chatId

integer

$messageId

integer

Returns

\TgBotApi\BotApiBase\Method\GetGameHighScoresMethod

createInline()

createInline(integer $userId, string $inlineMessageId) : \TgBotApi\BotApiBase\Method\GetGameHighScoresMethod
Static

Parameters

$userId

integer

$inlineMessageId

string

Returns

\TgBotApi\BotApiBase\Method\GetGameHighScoresMethod

 Properties

 

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

$chatId : integer | null

Default

 

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

$inlineMessageId : string | null

Default

 

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

$messageId : integer | null

Default

 

Target user id.

$userId : integer

Default