Title: [FEATURE] Add telegram.ext.filters.Filters.poll for native poll messages · Issue #1672 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: [FEATURE] Add telegram.ext.filters.Filters.poll for native poll messages · Issue #1672 · python-telegram-bot/python-telegram-bot
X Title: [FEATURE] Add telegram.ext.filters.Filters.poll for native poll messages · Issue #1672 · python-telegram-bot/python-telegram-bot
Description: Is your feature request related to a problem? Please describe. Since version 4.2, Bot API added poll message support, and PTB has also followed up with that in the API. However, as of PTB 12.2.0, ther is no support of poll messages in bu...
Open Graph Description: Is your feature request related to a problem? Please describe. Since version 4.2, Bot API added poll message support, and PTB has also followed up with that in the API. However, as of PTB 12.2.0, t...
X Description: Is your feature request related to a problem? Please describe. Since version 4.2, Bot API added poll message support, and PTB has also followed up with that in the API. However, as of PTB 12.2.0, t...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/1672
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[FEATURE] Add telegram.ext.filters.Filters.poll for native poll messages","articleBody":"#### Is your feature request related to a problem? Please describe.\r\nSince version 4.2, Bot API added poll message support, and PTB has also followed up with that in the API. However, as of PTB 12.2.0, ther is no support of poll messages in built in filters like other message types.\r\n\r\n#### Describe the solution you'd like\r\nAdd a filter `telegram.ext.filters.Filters.poll`, namely:\r\n\r\n```python\r\n class _Poll(BaseFilter):\r\n name = 'Filters.poll'\r\n\r\n def filter(self, message):\r\n return bool(message.poll)\r\n\r\n poll = _Poll()\r\n \"\"\"Messages that contain :class:`telegram.Poll`.\"\"\"\r\n```\r\n\r\n#### Describe alternatives you've considered\r\nI’m having this filter in my own code so far.\r\n\r\n#### Additional context\r\nNone\r\n","author":{"url":"https://github.com/blueset","@type":"Person","name":"blueset"},"datePublished":"2019-12-25T14:21:24Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/1672"}
| 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:91d930d6-8d2c-be0c-bd44-acbca433dfe1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E19E:38EE04:2933C67:360E313:6B026DF2 |
| html-safe-nonce | 14d2ee6e8c310063d2e726e2ce2f90d997b3f48fbf089ac04c3d7507e225c527 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTlFOjM4RUUwNDoyOTMzQzY3OjM2MEUzMTM6NkIwMjZERjIiLCJ2aXNpdG9yX2lkIjoiNzU1NjgyOTc5MDgyMzAwOTE0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 80e45ea125471354173ffd184a91daa426169d51ccb4aa38708e6dd2a5b6062c |
| hovercard-subject-tag | issue:542349298 |
| 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/1672/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9c2d635a40a27ec20c85d934dd397357f93744173540d03bf9a724ca55b847f9/python-telegram-bot/python-telegram-bot/issues/1672 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9c2d635a40a27ec20c85d934dd397357f93744173540d03bf9a724ca55b847f9/python-telegram-bot/python-telegram-bot/issues/1672 |
| og:image:alt | Is your feature request related to a problem? Please describe. Since version 4.2, Bot API added poll message support, and PTB has also followed up with that in the API. However, as of PTB 12.2.0, t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | blueset |
| 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