0

When I deploy my Django app with my bot.py to Heroku there is a conflict because Django does not let the bot receive the calls.

Procfile

web: python bot.py
web: gunicorn tlgrmbot.wsgi

the logs show that it keeps looking for the https://herokuappname.com/token not found, because I don´t have urls, and if I only leave the python bot.py in the procfile the bot responds but it does not finds the Database.

Does someone knows how to resolve this?

1 Answer 1

3

You can use django-telegrambot, it is easy to set up and works well while deployed. Don't forget to set gunicorn workers = 1, so it will handle all requests.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.