Title: [Documentation] Provide resources on how to run PTB in general asyncio frameworks · Issue #3401 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: [Documentation] Provide resources on how to run PTB in general asyncio frameworks · Issue #3401 · python-telegram-bot/python-telegram-bot
X Title: [Documentation] Provide resources on how to run PTB in general asyncio frameworks · Issue #3401 · python-telegram-bot/python-telegram-bot
Description: What kind of feature are you missing? Where do you notice a shortcoming of PTB? Documentation on how to run multiple PTB bots in the same python process run PTB side-by-side with other asyncio frameworks in the same python process is cur...
Open Graph Description: What kind of feature are you missing? Where do you notice a shortcoming of PTB? Documentation on how to run multiple PTB bots in the same python process run PTB side-by-side with other asyncio fram...
X Description: What kind of feature are you missing? Where do you notice a shortcoming of PTB? Documentation on how to run multiple PTB bots in the same python process run PTB side-by-side with other asyncio fram...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/3401
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Documentation] Provide resources on how to run PTB in general asyncio frameworks","articleBody":"### What kind of feature are you missing? Where do you notice a shortcoming of PTB?\n\nDocumentation on how to\r\n\r\n* run multiple PTB bots in the same python process\r\n* run PTB side-by-side with other asyncio frameworks in the same python process\r\n\r\nis currently rather scarse.\n\n### Describe the solution you'd like\n\nA section on the \"Frequently requested design patterns\" or even a standalone wiki page with some tips on these. Importants points are\r\n\r\n* why `App.run_{polling, webhook}` are not suitable in these cases\r\n* Detailing which order to call `App.{initialize, start, stop, shutdown}` & `Updater.start_{polling, webhook}` in\r\n* noting that cancelling pending tasks should be done *after* the app has shut down (see first bullet point in https://github.com/python-telegram-bot/python-telegram-bot/issues/3397#issuecomment-1330604217)\r\n* 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\"\n\n### Describe alternatives you've considered\n\n_No response_\n\n### Additional context\n\n* we already have the `Tip:` thingies in the docstrings of `App.run_{polling, webhook}`, but that's apparently not enough\r\n* `customwebhookbot` showcases this to some extend but the \"keep the process alive\" part is conveniently covered by uvicorn and `Updater` is not included\r\n* There were several threads in the user-group where these topics were touched\r\n* #3397","author":{"url":"https://github.com/Bibo-Joshi","@type":"Person","name":"Bibo-Joshi"},"datePublished":"2022-11-30T13:41:14Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/3401"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:30d9d15e-b7e9-ad2b-5390-1d352e58970a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A9E2:1F95:66545F:85D616:6B025853 |
| html-safe-nonce | 41b2c1b1dd0f0b9c011c02856b7597ff4b7104a0a1bcb3db5a839a16daf9b0a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUUyOjFGOTU6NjY1NDVGOjg1RDYxNjo2QjAyNTg1MyIsInZpc2l0b3JfaWQiOiI4NTk4MDgyMzg3MjczOTk2MzcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | eb7623a6fe08043d3b3749698644d2fdb84030a4da278eee26da6fde92613a29 |
| hovercard-subject-tag | issue:1469656430 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-telegram-bot/python-telegram-bot/3401/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5219cec74b0bfe2472fceae0cd0420f746a259deb0b5826941da7da9c7e52bc7/python-telegram-bot/python-telegram-bot/issues/3401 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5219cec74b0bfe2472fceae0cd0420f746a259deb0b5826941da7da9c7e52bc7/python-telegram-bot/python-telegram-bot/issues/3401 |
| og:image:alt | What kind of feature are you missing? Where do you notice a shortcoming of PTB? Documentation on how to run multiple PTB bots in the same python process run PTB side-by-side with other asyncio fram... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Bibo-Joshi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-telegram-bot/python-telegram-bot git https://github.com/python-telegram-bot/python-telegram-bot.git |
| octolytics-dimension-user_id | 16178365 |
| octolytics-dimension-user_login | python-telegram-bot |
| octolytics-dimension-repository_id | 38696925 |
| octolytics-dimension-repository_nwo | python-telegram-bot/python-telegram-bot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38696925 |
| octolytics-dimension-repository_network_root_nwo | python-telegram-bot/python-telegram-bot |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width