mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 22:45:09 +01:00
GameHighScore: added attributes documentation
This commit is contained in:
parent
d70fc48e94
commit
fab97df58a
1 changed files with 8 additions and 0 deletions
|
@ -22,6 +22,14 @@ from telegram import TelegramObject, User
|
||||||
|
|
||||||
|
|
||||||
class GameHighScore(TelegramObject):
|
class GameHighScore(TelegramObject):
|
||||||
|
"""This object represents a Telegram GameHighScore.
|
||||||
|
|
||||||
|
Attributes:
|
||||||
|
position (int): Position in high score table for the game.
|
||||||
|
user (:class:`telegram.User`): User object.
|
||||||
|
score (int): Score.
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
def __init__(self, position, user, score):
|
def __init__(self, position, user, score):
|
||||||
self.position = position
|
self.position = position
|
||||||
|
|
Loading…
Reference in a new issue