Layer 220
method Bots
messages.getGameHighScores#e822649d peer:InputPeer id:int user_id:InputUser = messages.HighScores;

Parameters

Name Type Description
Peer InputPeer Where was the game sent
Id int ID of message with game media attachment
UserId InputUser Get high scores made by a certain user

Possible Errors

Code Type Description
400 MESSAGE_ID_INVALID The provided message id is invalid.
400 PEER_ID_INVALID The provided peer id is invalid.
400 USER_BOT_REQUIRED This method can only be called by a bot.

Gogram Example

// MessagesGetGameHighScores - positional arguments
result, err := client.MessagesGetGameHighScores(&tg.InputPeerUser{UserID: int64(123456789)}, 0, &tg.InputUserSelf{})
if err != nil {
    // handle error
}
// result is *tg.MessagesHighScores