1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Add force params in setGameScore method.

This commit is contained in:
eternnoir 2016-12-03 13:31:55 +08:00
parent 30ed6e37d3
commit 9a5e8302be

View File

@ -578,8 +578,8 @@ class TeleBot:
reply_markup) reply_markup)
return types.Message.de_json(result) return types.Message.de_json(result)
def set_game_score(self, user_id, score, chat_id=None, message_id=None, inline_message_id=None, edit_message=None): def set_game_score(self, user_id, score, force=None,chat_id=None, message_id=None, inline_message_id=None, edit_message=None):
result = apihelper.set_game_score(self.token, user_id, score, chat_id, message_id, inline_message_id, result = apihelper.set_game_score(self.token, user_id, score, force, chat_id, message_id, inline_message_id,
edit_message) edit_message)
if type(result) == bool: if type(result) == bool:
return result return result