Title: From error state to other state on a Conversational bot · Issue #2277 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: From error state to other state on a Conversational bot · Issue #2277 · python-telegram-bot/python-telegram-bot
X Title: From error state to other state on a Conversational bot · Issue #2277 · python-telegram-bot/python-telegram-bot
Description: I have a ConversationHandler with an error function like this: def error(update, context): logger.print_log("got the error:" + str(context.error)) My bot is like this: updater = Updater(token,use_context=True) dp = updater.dispatcher con...
Open Graph Description: I have a ConversationHandler with an error function like this: def error(update, context): logger.print_log("got the error:" + str(context.error)) My bot is like this: updater = Updater(token,use_c...
X Description: I have a ConversationHandler with an error function like this: def error(update, context): logger.print_log("got the error:" + str(context.error)) My bot is like this: updater = Updater(t...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/2277
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"From error state to other state on a Conversational bot","articleBody":"I have a ConversationHandler with an `error` function like this:\r\n```python\r\ndef error(update, context):\r\n logger.print_log(\"got the error:\" + str(context.error))\r\n```\r\nMy bot is like this:\r\n\r\n```python\r\nupdater = Updater(token,use_context=True)\r\ndp = updater.dispatcher\r\nconv_handler = ConversationHandler(\r\n entry_points=[CommandHandler('start', start)],\r\n states={\r\n \r\n STATE1: [...],\r\n STATE2: [...],\r\n ...\r\n },\r\n fallbacks=[CommandHandler('cancel', cancel)]\r\n )\r\ndp.add_handler(conv_handler)\r\ndp.add_error_handler(error)\r\nupdater.start_polling()\r\nupdater.idle()\r\n```\r\n\r\nI'm trying to treat `error` function like all the other states, but it seems not working. After the error the program remains in the same state where the error has occurred, but I want to go always to STATE2. How can I do?","author":{"url":"https://github.com/paulthemagno","@type":"Person","name":"paulthemagno"},"datePublished":"2020-12-27T17:30:33Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/2277"}
| 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:9f6596a0-8e18-f96a-d1b5-647398e65ddd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF68:76F02:50F1CB8:6713BEE:6B027D96 |
| html-safe-nonce | 20b56cd687495628d9d97a75e0d718b03834f527364a95b617642d74902a1927 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjY4Ojc2RjAyOjUwRjFDQjg6NjcxM0JFRTo2QjAyN0Q5NiIsInZpc2l0b3JfaWQiOiI3OTgwNjc3MDU0NjA3ODE4MTM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e5fdfc6fd2d8adca3f85c9168f7a6a8ef507bb3a0a547c763c8ff11269be1ddb |
| hovercard-subject-tag | issue:775077317 |
| 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/2277/issue_layout |
| twitter:image | https://opengraph.githubassets.com/37f7522fe60fec2f178e3e54e73bd6527a73fba778e538fc15b82caa5da97778/python-telegram-bot/python-telegram-bot/issues/2277 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/37f7522fe60fec2f178e3e54e73bd6527a73fba778e538fc15b82caa5da97778/python-telegram-bot/python-telegram-bot/issues/2277 |
| og:image:alt | I have a ConversationHandler with an error function like this: def error(update, context): logger.print_log("got the error:" + str(context.error)) My bot is like this: updater = Updater(token,use_c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | paulthemagno |
| 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