Title: Make `filters.command` work as expected · Issue #1755 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: Make `filters.command` work as expected · Issue #1755 · python-telegram-bot/python-telegram-bot
X Title: Make `filters.command` work as expected · Issue #1755 · python-telegram-bot/python-telegram-bot
Description: Now filters.text allows messages starting with a /, not excluding bot commands, we need a fast and simpler way to stop those entering filters.text if you want to exclude them. I propose to change filters.command to the following behavior...
Open Graph Description: Now filters.text allows messages starting with a /, not excluding bot commands, we need a fast and simpler way to stop those entering filters.text if you want to exclude them. I propose to change f...
X Description: Now filters.text allows messages starting with a /, not excluding bot commands, we need a fast and simpler way to stop those entering filters.text if you want to exclude them. I propose to change f...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/1755
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make `filters.command` work as expected","articleBody":"Now `filters.text` allows messages starting with a `/`, not excluding bot commands, we need a fast and simpler way to stop those entering `filters.text` if you want to exclude them.\r\n\r\nI propose to change `filters.command` to the following behavior:\r\n- invoking `filters.command` will filter any messages with `entity.type='bot_command`. Basically a mirror of `filters.entity(['bot_command']) which we can just invoke this way)\r\n- invoking `filters.command(only_start=True) | filters.command(True)` (name is open for discussion) filters any messages that **start** with a bot command.\r\n\r\nthis will allow for easily using `filters.text & ~filters.command(true)` to not get any command updates with your text filter.\r\n\r\nOptionally we could make `filters.command` a `data_filter` and add the found commands to CallbackContext` as the `context.commands` (list). Although maybe that is outside this scope and then should also be added for commandhandler to add.","author":{"url":"https://github.com/Eldinnie","@type":"Person","name":"Eldinnie"},"datePublished":"2020-02-06T11:12:22Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/1755"}
| 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:40a458a7-956c-4d9b-5267-3fc6628efcd0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0EE:CD79A:E19D6A:127BED6:6B0279E9 |
| html-safe-nonce | 3c097a448703e85c91c283feaadc3c90b3a14c259fc43ce5ee8be34f9bca36cd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEVFOkNENzlBOkUxOUQ2QToxMjdCRUQ2OjZCMDI3OUU5IiwidmlzaXRvcl9pZCI6IjgxOTM3Nzc4Mzk4ODgzMDA1MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5ef2379e7fab868126abd8ed1461d52196aa3c1e0dfeb00c1c3f8dfdaffa4e17 |
| hovercard-subject-tag | issue:560942883 |
| 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/1755/issue_layout |
| twitter:image | https://opengraph.githubassets.com/52c0fafdbf1f344b0c6f5a09a70a0543906f6d9240fd2c55beebf4b134887dfe/python-telegram-bot/python-telegram-bot/issues/1755 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/52c0fafdbf1f344b0c6f5a09a70a0543906f6d9240fd2c55beebf4b134887dfe/python-telegram-bot/python-telegram-bot/issues/1755 |
| og:image:alt | Now filters.text allows messages starting with a /, not excluding bot commands, we need a fast and simpler way to stop those entering filters.text if you want to exclude them. I propose to change f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Eldinnie |
| 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