botserver: Remove obsolete state_handler param from handle_message().

This commit is contained in:
derAnfaenger 2017-10-31 12:24:10 +01:00
parent aef41de37a
commit e5576388dd
2 changed files with 2 additions and 6 deletions

View file

@ -74,13 +74,9 @@ def handle_bot(bot):
message_handler = lib_module.handler_class()
# TODO: Handle stateful bots properly.
state_handler = StateHandler()
event = request.get_json(force=True)
message_handler.handle_message(message=event["message"],
bot_handler=restricted_client,
state_handler=state_handler)
bot_handler=restricted_client)
return json.dumps("")
def parse_args():