python-whatsapp-bot icon indicating copy to clipboard operation
python-whatsapp-bot copied to clipboard

Update views.py

Open aziliak opened this issue 2 years ago • 0 comments

views.py

Change the end to the following. I commented out the original code and got the verification to work. I was getting a 403 error before.

@webhook_blueprint.route("/webhook", methods=["GET"]) def webhook_get(): return verify()

@webhook_blueprint.route("/webhook", methods=["POST"]) @signature_required def webhook_post(): return handle_message() """ @webhook_blueprint.route("/webhook", methods=["POST", "GET"]) @signature_required def webhook(): if request.method == "GET": return verify() elif request.method == "POST": return handle_message() """

aziliak avatar Dec 08 '23 08:12 aziliak