Is your feature request related to a problem? Please describe.
Webhook integration would make sure the bot doesn't need to be woken up before being talked to, and also make sure that the program does not create requests to the telegram server repeatedly every 0.5 seconds to check for new updates in the bot.
Describe the solution you'd like
telegram process in the Heroku isn't needed anymore.
webapp.py will have a flask function catching the POST requests sent by telegram to the webhook, and processing it further.
Describe alternatives you've considered
None. Webhooks are better than using infinite while loops.
Additional context
One time setup of the webhook needs to be done on ChristopherMapbot by the bot admin. The webhook will be BASE_URL/telegram/BOT_TOKEN to make it unique as suggested by the Telegram docs.
Is your feature request related to a problem? Please describe. Webhook integration would make sure the bot doesn't need to be woken up before being talked to, and also make sure that the program does not create requests to the telegram server repeatedly every 0.5 seconds to check for new updates in the bot.
Describe the solution you'd like
telegram
process in the Heroku isn't needed anymore.webapp.py
will have a flask function catching the POST requests sent by telegram to the webhook, and processing it further.Describe alternatives you've considered None. Webhooks are better than using infinite while loops.
Additional context
BASE_URL/telegram/BOT_TOKEN
to make it unique as suggested by the Telegram docs.