Test app works as expected with only a single web process on Heroku.
Conflicts if any: None
Checklist:
[x] Read the contributing guidelines
[x] All coding conventions are followed
[x] Style guidelines for this project have been followed
[x] 4 space indentation is used
[x] Relevant comments are added
[x] The code has been tested
[x] No new warnings are generated
Screenshots:
None
Other Information:
Only when the bot receives a message, a POST request is sent to the webhook by Telegram and is caught by the flask view function telegram_webhook() in webapp.py. No unnecessary requests to the Telegram server are made anymore.
Fixes #190
Description:
Files changed:
Procfile
README.md
telegram.py
webapp.py
Dependencies if any: None
Basic tests done to validate:
web
process on Heroku.Conflicts if any: None
Checklist:
Screenshots:
None
Other Information:
telegram_webhook()
inwebapp.py
. No unnecessary requests to the Telegram server are made anymore.@vishakha-lall