diff --git a/handlers/apiFokabotMessageHandler.py b/handlers/apiFokabotMessageHandler.py index 9a5ac95..85e2729 100644 --- a/handlers/apiFokabotMessageHandler.py +++ b/handlers/apiFokabotMessageHandler.py @@ -27,7 +27,11 @@ class handler(requestsManager.asyncRequestHandler): if key is None or key != glob.conf.config["server"]["cikey"]: raise exceptions.invalidArgumentsException() - chatHelper.sendMessage("FokaBot", self.get_argument("to"), self.get_argument("msg")) + chatHelper.sendMessage( + "FokaBot", + self.get_argument("to").encode().decode("ASCII", "ignore"), + self.get_argument("msg").encode().decode("ASCII", "ignore") + ) # Status code and message statusCode = 200