Giter Site home page Giter Site logo

python-whatsapp-bot's People

Contributors

anubisxhyperx avatar daveebbelaar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-whatsapp-bot's Issues

Send WhatsApp message to any number

In whatsapp_utils.py module the function process_whatsapp_message(body) gets the wa_id parameter, but in line 92 we sent the response to the hardcoded environment parameter "RECIPIENT_WAID".

line_92

In order to answer to any number that send us a message, get_text_message_input(current_app.config["RECIPIENT_WAID"], response) should change to get_text_message_input(wa_id, response)?

Or is there another way to respond to any number?

Update views.py

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

Deploy to Production

Any advice on how to deploy the app to production? It's my first time deploying a web app, and i'm having trouble on how to run both the run.py file and the webhook command ngrok http --domain=your-domain.ngrok-free.app 8000. Any hosting service recommendation/tutorial?

whatsapp_utils.py

Comment out line 86 since this is for future. The program fails with this in it.

Limit access?

Love this project! Though, before I dive in: any way to limit access to the bot? I'd like to set it up for personal use/testing and obviously don't want to bear the costs of the whole world chatting with it 😁
Also would be nice to set a threshold on costs, let's say if above 100 Dollar/month warn and above 150 disable access.

Paid ngrok needed for this project?

I've been following the instructions up until the ngrok section and noticed that a Pro or Enterprise tier is required to proceed. I've only used the free tier so far. Is there a way to use that to proceed? If not, might be a good idea to write in the requirements that a paid subscription is required to proceed. Thanks for a great video & repo, keep up the good work!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.