MadelineProto/docs/TD_docs/constructors/gameHighScore.md

47 lines
945 B
Markdown
Raw Normal View History

---
title: gameHighScore
description: Contains one row of the game high scores table
---
## Constructor: gameHighScore
[Back to constructors index](index.md)
Contains one row of the game high scores table
### Attributes:
| Name | Type | Required | Description |
2017-08-20 11:05:56 +02:00
|----------|---------------|----------|-------------|
|position|[int](../types/int.md) | Yes|Position in the high score table|
|user\_id|[int](../types/int.md) | Yes|User identifier|
|score|[int](../types/int.md) | Yes|User score|
### Type: [GameHighScore](../types/GameHighScore.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$gameHighScore = ['_' => 'gameHighScore', 'position' => int, 'user_id' => int, 'score' => int];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "gameHighScore", "position": int, "user_id": int, "score": int}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
gameHighScore={_='gameHighScore', position=int, user_id=int, score=int}
```