mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Bug fixed on set_game_score
fixed wrong ordered argument error on calling apihelper.set_game_score method in set_game_score
This commit is contained in:
parent
e2c20c1e55
commit
aea067f789
@ -1465,7 +1465,7 @@ class TeleBot:
|
|||||||
return types.Message.de_json(result)
|
return types.Message.de_json(result)
|
||||||
|
|
||||||
def set_game_score(self, user_id, score, force=None, chat_id=None, message_id=None, inline_message_id=None,
|
def set_game_score(self, user_id, score, force=None, chat_id=None, message_id=None, inline_message_id=None,
|
||||||
edit_message=None):
|
disable_edit_message=None):
|
||||||
"""
|
"""
|
||||||
Sets the value of points in the game to a specific user
|
Sets the value of points in the game to a specific user
|
||||||
:param user_id:
|
:param user_id:
|
||||||
@ -1474,11 +1474,11 @@ class TeleBot:
|
|||||||
:param chat_id:
|
:param chat_id:
|
||||||
:param message_id:
|
:param message_id:
|
||||||
:param inline_message_id:
|
:param inline_message_id:
|
||||||
:param edit_message:
|
:param disable_edit_message:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
result = apihelper.set_game_score(self.token, user_id, score, force, chat_id, message_id, inline_message_id,
|
result = apihelper.set_game_score(self.token, user_id, score, force, disable_edit_message, chat_id, message_id,
|
||||||
edit_message)
|
inline_message_id)
|
||||||
if type(result) == bool:
|
if type(result) == bool:
|
||||||
return result
|
return result
|
||||||
return types.Message.de_json(result)
|
return types.Message.de_json(result)
|
||||||
|
Loading…
Reference in New Issue
Block a user