Title: case-insensitive in conversationbot.py bot demo · Issue #4846 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: case-insensitive in conversationbot.py bot demo · Issue #4846 · python-telegram-bot/python-telegram-bot
X Title: case-insensitive in conversationbot.py bot demo · Issue #4846 · python-telegram-bot/python-telegram-bot
Description: Steps to Reproduce when i run sample conversationbot.py in the offical document, i found it is case-insensitive Expected behaviour it should accept input such as boy/Boy/BOY Actual behaviour if I type wrong message, the program hang out ...
Open Graph Description: Steps to Reproduce when i run sample conversationbot.py in the offical document, i found it is case-insensitive Expected behaviour it should accept input such as boy/Boy/BOY Actual behaviour if I t...
X Description: Steps to Reproduce when i run sample conversationbot.py in the offical document, i found it is case-insensitive Expected behaviour it should accept input such as boy/Boy/BOY Actual behaviour if I t...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/4846
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"case-insensitive in conversationbot.py bot demo","articleBody":"### Steps to Reproduce\n\n1. when i run sample conversationbot.py in the offical document, i found it is case-insensitive \n\n\u003cimg width=\"764\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/d4f460ab-4a61-4ee4-9966-cb0ed78a7fa5\" /\u003e\n\n\n### Expected behaviour\n\nit should accept input such as boy/Boy/BOY \n\n### Actual behaviour\n\nif I type wrong message, the program hang out\n\n### Operating System\n\nmacos\n\n### Version of Python, python-telegram-bot \u0026 dependencies\n\n```shell\npython-telegram-bot 21.5\nBot API 7.9\nPython 3.11.5 (main, Aug 24 2023, 15:09:45) [Clang 14.0.3 (clang-1403.0.22.14.1)]\n```\n\n### Relevant log output\n\n```python\n\n```\n\n### Additional Context\n\nI found just modify the code, it can fix this bug.\n`GENDER: [MessageHandler(filters.Regex(\"^(Boy|Girl|Other)$\"), gender)]`,\nto\nGENDER: [MessageHandler(filters.Regex(\"(?i)^(Boy|Girl|Other)$\"), gender)].\n","author":{"url":"https://github.com/fengxiaohu","@type":"Person","name":"fengxiaohu"},"datePublished":"2025-07-03T17:23:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/4846/python-telegram-bot/issues/4846"}
| 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:c67b510f-682e-a1d6-c150-34494bd596b7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C530:1BDA3B:3652B8:491BCD:6A5B63C0 |
| html-safe-nonce | ab8c423714bf1ba1927d6a2c20211d4e44d9119e669316e5fe98b485320d0c1f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTMwOjFCREEzQjozNjUyQjg6NDkxQkNEOjZBNUI2M0MwIiwidmlzaXRvcl9pZCI6IjQ0MTE3NDUxNDM1NzUyNDE2NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bb09a28671a2d8de96830b4adb3d4149c5899cdb8f5fbc86e2a3119afbcbfcea |
| hovercard-subject-tag | issue:3200097245 |
| 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/4846/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9253f7343aa7800635f24b4f0b25a411ed02c6cf62eef2e1c9aa78fa0d7abe3a/python-telegram-bot/python-telegram-bot/issues/4846 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9253f7343aa7800635f24b4f0b25a411ed02c6cf62eef2e1c9aa78fa0d7abe3a/python-telegram-bot/python-telegram-bot/issues/4846 |
| og:image:alt | Steps to Reproduce when i run sample conversationbot.py in the offical document, i found it is case-insensitive Expected behaviour it should accept input such as boy/Boy/BOY Actual behaviour if I t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fengxiaohu |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width