mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-16 12:25:45 +01:00
getGameHighScores(): added documentation + fixed copy-paste errors
This commit is contained in:
parent
36192912c2
commit
d70fc48e94
1 changed files with 9 additions and 2 deletions
|
@ -1545,6 +1545,13 @@ class Bot(TelegramObject):
|
|||
message_id=None,
|
||||
inline_message_id=None,
|
||||
**kwargs):
|
||||
"""Use this method to get data for high score tables.
|
||||
|
||||
Returns:
|
||||
list[:class:`telegram.GameHighScore`]: Scores of the specified user and several of his
|
||||
neighbors in a game.
|
||||
|
||||
"""
|
||||
url = '{0}/setGameScore'.format(self.base_url)
|
||||
|
||||
data = {'user_id': user_id}
|
||||
|
@ -1552,9 +1559,9 @@ class Bot(TelegramObject):
|
|||
if chat_id:
|
||||
data['chat_id'] = chat_id
|
||||
if message_id:
|
||||
data['chat_id'] = chat_id
|
||||
data['message_id'] = message_id
|
||||
if inline_message_id:
|
||||
data['chat_id'] = inline_message_id
|
||||
data['inline_message_id'] = inline_message_id
|
||||
|
||||
result = self._request.post(url, data, timeout=kwargs.get('timeout'))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue