Title: Feature Request: Persist data between responses in ConversationHandler · Issue #385 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: Feature Request: Persist data between responses in ConversationHandler · Issue #385 · python-telegram-bot/python-telegram-bot
X Title: Feature Request: Persist data between responses in ConversationHandler · Issue #385 · python-telegram-bot/python-telegram-bot
Description: Currently ConversationHandler doesn't save a user's responses. Each response to the conversation triggers an update handler, which has access to the most recent update, but not the previous ones. The ConversationHandler should be enhance...
Open Graph Description: Currently ConversationHandler doesn't save a user's responses. Each response to the conversation triggers an update handler, which has access to the most recent update, but not the previous ones. T...
X Description: Currently ConversationHandler doesn't save a user's responses. Each response to the conversation triggers an update handler, which has access to the most recent update, but not the previous...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/385
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature Request: Persist data between responses in ConversationHandler","articleBody":"Currently ConversationHandler doesn't save a user's responses.\n\nEach response to the conversation triggers an update handler, which has access to the most recent update, but not the previous ones.\n\nThe ConversationHandler should be enhanced to support data persistence between states.\n### Use case\n\nA conversation where the bot asks the user three questions, then saves the answers to all three questions to a database, in one database operation.\n### Implementation\n\nThis could be implemented by changing the existing `ConversationHandler.conversations` dict of `key : state` to a dict of `key : {\"state\" : ___, \"data\" : ___}`.\n\n`data` is any object that the programmer wants, initially `None`.\n\n`data` should be made available to all update handler callbacks.\n","author":{"url":"https://github.com/LiaungYip","@type":"Person","name":"LiaungYip"},"datePublished":"2016-08-18T16:51:59Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/385"}
| 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:7aaa82c4-2418-c172-9c7e-9d5b80d9474a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C60A:DB09F:5465780:6B4E7DD:6B029E30 |
| html-safe-nonce | 2e30f7bf0f43a1cacd1df2926f3ed5f26860ffd201739f98686bacdb84d905b0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjBBOkRCMDlGOjU0NjU3ODA6NkI0RTdERDo2QjAyOUUzMCIsInZpc2l0b3JfaWQiOiIzNzA4OTQ1OTAxMDQ2MzczOTM2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f558eb520d20ace1ea8bcbcd7b75ab262bc8b4ec749d9a7ece2f1d884c1cd3fb |
| hovercard-subject-tag | issue:171949144 |
| 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/385/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bbfa9a4a82f21e0ae575bc76b7a2c61646583909a5ae00f68d361f0c2beec32f/python-telegram-bot/python-telegram-bot/issues/385 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bbfa9a4a82f21e0ae575bc76b7a2c61646583909a5ae00f68d361f0c2beec32f/python-telegram-bot/python-telegram-bot/issues/385 |
| og:image:alt | Currently ConversationHandler doesn't save a user's responses. Each response to the conversation triggers an update handler, which has access to the most recent update, but not the previous ones. T... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LiaungYip |
| 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