Доработка Telegram бота на платформе Heroku, не работает Webhook
Кусок кода, где подключается вебхук
updater.start_webhook( | |
listen="0.0.0.0", | |
port=int(PORT), | |
url_path=TOKEN, | |
webhook_url='https://jma-subscribers-tracker.herokuapp.com/' + TOKEN) | |
#updater.bot.set_webhook('https://jma-subscribers-tracker.herokuapp.com/' + TOKEN) | |
# Run the bot until you press Ctrl-C or the process receives SIGINT, | |
# SIGTERM or SIGABRT. This should be used most of the time, since | |
# start_polling() is non-blocking and will stop the bot gracefully. | |
updater.idle() |
2022-08-05T19:40:09.952862+00:00 heroku[router]: at=info method=POST path="/5255112029:AAEmNRMxNfjcA7YQwf0_oGavbI" host=jma-subscribers-tracker.herokuapp.com request_id=044cdcb0-7a8c-49fa-931d-6cd66daccfa6 fwd="91.108.6.39" dyno=web.1 connect=0ms service=2ms status=404 bytes=238 protocol=http