From 1e77ad1854aa80d6c85eb37218e35ba7e06943fb Mon Sep 17 00:00:00 2001 From: Bart Willems Date: Fri, 13 Dec 2019 10:53:50 +0100 Subject: [PATCH] removed the 'I do not understand you!' messages Signed-off-by: Bart Willems --- dev_utils/testBot/__init__.py | 1 - octoprint_telegram/__init__.py | 1 - 2 files changed, 2 deletions(-) diff --git a/dev_utils/testBot/__init__.py b/dev_utils/testBot/__init__.py index ef22863..931e1cb 100644 --- a/dev_utils/testBot/__init__.py +++ b/dev_utils/testBot/__init__.py @@ -199,7 +199,6 @@ def handleTextMessage(self, message, chat_id, from_id): if command not in self.main.tcmd.commandDict: # we dont know the command so skip the message print "Previous command was an unknown command." - self.main.send_msg("I do not understand you! " + self.gEmo('mistake'),chatID=chat_id) raise ExitThisLoopException() # check if user is allowed to execute the command if self.isCommandAllowed(chat_id,from_id,command) and self.main.tcmd.checkState(from_id, command, parameter): diff --git a/octoprint_telegram/__init__.py b/octoprint_telegram/__init__.py index 3e936e8..f9ca54e 100644 --- a/octoprint_telegram/__init__.py +++ b/octoprint_telegram/__init__.py @@ -280,7 +280,6 @@ def handleTextMessage(self, message, chat_id, from_id): if command not in self.main.tcmd.commandDict: # we dont know the command so skip the message self._logger.warn("Previous command was an unknown command.") - self.main.send_msg("I do not understand you! " + self.gEmo('mistake'),chatID=chat_id) raise ExitThisLoopException() # check if user is allowed to execute the command if self.main.isCommandAllowed(chat_id,from_id,command):