Title: [BUG] context.user_data saved in a conversation is lost upon timeout. · Issue #1823 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: [BUG] context.user_data saved in a conversation is lost upon timeout. · Issue #1823 · python-telegram-bot/python-telegram-bot
X Title: [BUG] context.user_data saved in a conversation is lost upon timeout. · Issue #1823 · python-telegram-bot/python-telegram-bot
Description: Steps to reproduce In the entry function of a conversation save some data in context.user_data Set the conversation_timeout of the conversation to some value other than 0. I used it as 10 In the "ConversationHandler.TIMEOUT" state define...
Open Graph Description: Steps to reproduce In the entry function of a conversation save some data in context.user_data Set the conversation_timeout of the conversation to some value other than 0. I used it as 10 In the "C...
X Description: Steps to reproduce In the entry function of a conversation save some data in context.user_data Set the conversation_timeout of the conversation to some value other than 0. I used it as 10 In the &q...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/1823
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] context.user_data saved in a conversation is lost upon timeout.","articleBody":"\u003c!--\r\nThanks for reporting issues of python-telegram-bot!\r\n\r\nUse this template to notify us if you found a bug.\r\n\r\nTo make it easier for us to help you please enter detailed information below.\r\n\r\nPlease note, we only support the latest version of python-telegram-bot and\r\nmaster branch. Please make sure to upgrade & recreate the issue on the latest\r\nversion prior to opening an issue.\r\n-->\r\n### Steps to reproduce\r\n1. In the entry function of a conversation save some data in context.user_data\r\n\r\n2. Set the conversation_timeout of the conversation to some value other than 0. I used it as 10\r\n\r\n3. In the \"ConversationHandler.TIMEOUT\" state define a callback handler and in that try reading the user_data from context.\r\n\r\n### Expected behaviour\r\nShould be able to fetch the saved data using context.user_data.get method.\r\n\r\n### Actual behaviour\r\nI get the following error: AttributeError: 'NoneType' object has no attribute 'get'. In all other states I am able to read the user_data except in the TIMEOUT state.\r\n\r\n### Configuration\r\n**Operating System:**\r\nWindows 10\r\n\r\n**Version of Python, python-telegram-bot & dependencies:**\r\nVersion of Python 3.7.5\r\nVersion of python-telegram-bot 12.4.2\r\n\r\n","author":{"url":"https://github.com/bsashidh","@type":"Person","name":"bsashidh"},"datePublished":"2020-03-10T03:09:46Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/1823"}
| 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:71c30b05-6035-1cc8-f3a1-f7c814f3e2f5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E5F4:213839:522B5F5:687C0F6:6B027606 |
| html-safe-nonce | 3868c6ee491db5d9f6cea49ededd3d9e5a3618e89f35524888e95771e76dc6d1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUY0OjIxMzgzOTo1MjJCNUY1OjY4N0MwRjY6NkIwMjc2MDYiLCJ2aXNpdG9yX2lkIjoiNTc0MDU4OTIzODc4MTYzODE1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ac1671944fcc2a9a8ed948440364f58d0ecf2741a7ecb8e5dfcdf40b66fb053c |
| hovercard-subject-tag | issue:578307676 |
| 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/1823/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5b2968ace3a7b5168c753c02d9ffe689fd4df747a5abec5932ae062bf28f395c/python-telegram-bot/python-telegram-bot/issues/1823 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5b2968ace3a7b5168c753c02d9ffe689fd4df747a5abec5932ae062bf28f395c/python-telegram-bot/python-telegram-bot/issues/1823 |
| og:image:alt | Steps to reproduce In the entry function of a conversation save some data in context.user_data Set the conversation_timeout of the conversation to some value other than 0. I used it as 10 In the "C... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bsashidh |
| 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