flaskserver: Load json python 3 compatible.
MODIFY
zulip_botserver/zulip_botserver/server.py
zulip_botserver/zulip_botserver/server.py
@@ -73,7 +73,7 @@ def handle_bot(bot):
# TODO: Handle stateful bots properly.
state_handler = StateHandler()
- event = json.loads(request.data)
+ event = request.get_json(force=True)
message_handler.handle_message(message=event["message"],
bot_handler=restricted_client,
state_handler=state_handler)

flaskserver: Load json python 3 compatible.