Added
- Add support for multiple sanic workers (configurable with the
ACTION_SERVER_SANIC_WORKERS
environment variable). - Add support for async
run
methods in theAction
class. - Return status code
404
in case requested action was not found. - Return status code
400
in case an empty request body was sent to the/webhook
endpoint.
Changed
- Replace
flask
server framework withsanic
. - Replace
flask_cors
withsanic-cors
. CollectingDispatcher.utter_message
can now do anything that other dispatcher
methods can do.- The
CollectingDispatcher
methodsutter_custom_message
,utter_elements
,
utter_button_message
,utter_attachment
,utter_button_template
,
utter_template
,utter_custom_json
andutter_image_url
were deprecated in
favor ofutter_message
. - Updated format strings to f-strings where appropriate.
Removed
- Remove
requests
dependency - Remove
gevent
dependency