Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update views.py #2

Open
aziliak opened this issue Dec 8, 2023 · 0 comments
Open

Update views.py #2

aziliak opened this issue Dec 8, 2023 · 0 comments

Comments

@aziliak
Copy link

aziliak commented Dec 8, 2023

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()
"""

EduardoLoz12 added a commit to EduardoLoz12/python-whatsapp-bot that referenced this issue May 19, 2024
Ya está sincronizado el OpenIA con Whatsapp de acuerdo a una base de datos subida.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant