Доработка Telegram бота на платформе Heroku, не работает Webhook

3 000 руб. за проект
05 августа 2022, 22:44 • 6 откликов • 24 просмотра
Написан бот на python через библиотеку python-telegram-bot (кажется версия 13.13). Поставил webhook, но в логах на платформе Heroku пишет ошибку , которая приведена ниже. Помогите, пожалуйста доработать бота, чтобы он не ругался.

Кусок кода, где подключается вебхук

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
Отзывы
Avatar r50 a6ce93fe35b158fd29ba0e8681c918c22117160e9586a56eee4ffbc20df9bda1
Заказчик
 
1 год назад
 
1 год назад