Title: [BUG] Improve readability of nested conversation example · Issue #1941 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: [BUG] Improve readability of nested conversation example · Issue #1941 · python-telegram-bot/python-telegram-bot
X Title: [BUG] Improve readability of nested conversation example · Issue #1941 · python-telegram-bot/python-telegram-bot
Description: Issue I am facing Tried to understand the example of the nested conversation handler example https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/nestedconversationbot.py At the bottom, lines 354 - 357, there i...
Open Graph Description: Issue I am facing Tried to understand the example of the nested conversation handler example https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/nestedconversationbot.py...
X Description: Issue I am facing Tried to understand the example of the nested conversation handler example https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/nestedconversationbot.py...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/1941
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] Improve readability of nested conversation example","articleBody":"### Issue I am facing\r\nTried to understand the example of the nested conversation handler example https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/nestedconversationbot.py\r\n\r\nAt the bottom, lines 354 - 357, there is this code snippet:\r\n```\r\n# Because the states of the third level conversation map to the ones of the\r\n# second level conversation, we need to be a bit hacky about that:\r\nconv_handler.states[SELECTING_LEVEL] = conv_handler.states[SELECTING_ACTION]\r\nconv_handler.states[STOPPING] = conv_handler.entry_points\r\n```\r\n\r\n1) What does the conversation state assignment do?\r\n2) Why is it needed?\r\n3) Why is it 'hacky'?\r\n\r\n\r\nI asked the same question in the telegram group, but my post got lost amongst messages of 5000 channel members.\r\n","author":{"url":"https://github.com/mr-rooftop","@type":"Person","name":"mr-rooftop"},"datePublished":"2020-05-04T05:19:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1941/python-telegram-bot/issues/1941"}
| 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:d54e0a1d-50de-4eb9-7be2-e2e6450bd73a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EE2A:9057D:14C3CA8:1C0DA0C:6A606F2C |
| html-safe-nonce | f2a50da9a296ec33a5a11d419263f4cf578e62e55e76013fccb6bd2055cba0c4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTJBOjkwNTdEOjE0QzNDQTg6MUMwREEwQzo2QTYwNkYyQyIsInZpc2l0b3JfaWQiOiI2OTk4OTAyMDg1NDA2MTkxNDA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0d2234685813bfce0dca6cf62b7910d949d33f63a98f8a1e62295e1b5b1e6627 |
| hovercard-subject-tag | issue:611609878 |
| 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/1941/issue_layout |
| twitter:image | https://opengraph.githubassets.com/159eb6ba266af51b4afc25a22f25cb7e0a24e2eefaae9c6e87a9e5bf926d3fdb/python-telegram-bot/python-telegram-bot/issues/1941 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/159eb6ba266af51b4afc25a22f25cb7e0a24e2eefaae9c6e87a9e5bf926d3fdb/python-telegram-bot/python-telegram-bot/issues/1941 |
| og:image:alt | Issue I am facing Tried to understand the example of the nested conversation handler example https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/nestedconversationbot.py... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mr-rooftop |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60da8c2a42fa2bbf5f7567474990ec467836a84444262a58e200fa91b7f3d2d0 |
| 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 | 9824515e740d83d5eb82168a089b806ab0fe04a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width