Closed vergeev closed 7 years ago
The method should return the Facebook response to the request.
Also, make the webhook()
return 500 HTTP code if the send request didn't succeed with the send method name as a return string.
Since #16 is closed, "refactoring" now also means "adding tests for the code".
The body of
for messaging_event in messaging_events
loop can be factored out to a method named something likesend_appropriate_response
inside themessage_processing
module.