You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some notes along the lines "there are many different design patterns for long-running asyncio processes, and there is probably not one right way for your use case"
Describe alternatives you've considered
No response
Additional context
we already have the Tip: thingies in the docstrings of App.run_{polling, webhook}, but that's apparently not enough
customwebhookbot showcases this to some extend but the "keep the process alive" part is conveniently covered by uvicorn and Updater is not included
There were several threads in the user-group where these topics were touched
What kind of feature are you missing? Where do you notice a shortcoming of PTB?
Documentation on how to
is currently rather scarse.
Describe the solution you'd like
A section on the "Frequently requested design patterns" or even a standalone wiki page with some tips on these. Importants points are
App.run_{polling, webhook}are not suitable in these casesApp.{initialize, start, stop, shutdown}&Updater.start_{polling, webhook}inDescribe alternatives you've considered
No response
Additional context
Tip:thingies in the docstrings ofApp.run_{polling, webhook}, but that's apparently not enoughcustomwebhookbotshowcases this to some extend but the "keep the process alive" part is conveniently covered by uvicorn andUpdateris not included