Forums

How to run embedded server of webhook

I have my telegram bot on Django, I use python telegram bot library with webhook which runs the embedded server to listen and handle requests from telegram. I am running my bot but the server of webhook not working, is that mans that I need web worker for that or how can I run webhook?.My codes and more about this issue I posted here: https://github.com/python-telegram-bot/python-telegram-bot/discussions/2952

You can't run a web app from a console on PythonAnywhere. You need to configure your webhook endpoint as part of your normal web app deployment.

Where can I configure that?, can I setup my webhook if I will choose manual configuration for my new web app or is there and documentation?, I just new in using webhooks, Thanks help

I guess @fjl meant that you need to configure your app as a PythonAnywhere webapp and run it like this. You can setup a webhook, but the service-endpoints need to be visible from your web app.