Sergey Smirnov
Sergey Smirnov
> It's great question! Just one hour ago i took template and set it to pre-release version 20.0a2 > > The main problem is to rewrite `tgbot/dispatcher.py` to application instance,...
I found the way to serve external requests by running _uvicorn_ programatically in the same async context like that: ```python async with application_tg: await application_tg.start() await server.serve() # uvicorn await...
Maybe.. I managed to make it work in a some perverted way but we should definitely wait for a stable PTB release. Django 4.2 is not a must have but...
@cuculoiseau I used this script https://gist.github.com/SergSm/b23069fffa34fbe7e7c07a417ac294f4 to see the full port name ['COM5'] and launched ```main.py``` like that: ```python main.py --port COM5```