Layer 220
MessagesGetGameHighScores
Get highscores of a game
method
Bots
messages.getGameHighScores#e822649d peer:InputPeer id:int user_id:InputUser = messages.HighScores;
Parameters
Returns
messages.HighScoresPossible 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