Title: [FEATURE] Duplicate · Issue #1813 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: [FEATURE] Duplicate · Issue #1813 · python-telegram-bot/python-telegram-bot
X Title: [FEATURE] Duplicate · Issue #1813 · python-telegram-bot/python-telegram-bot
Description: Is your feature request related to a problem? Please describe. Bot-created identified poll will receive pollAnswer updates from the Telegram server when users submit their choices (or retract their votes), which contain info about the vo...
Open Graph Description: Is your feature request related to a problem? Please describe. Bot-created identified poll will receive pollAnswer updates from the Telegram server when users submit their choices (or retract their...
X Description: Is your feature request related to a problem? Please describe. Bot-created identified poll will receive pollAnswer updates from the Telegram server when users submit their choices (or retract their...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/1813
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[FEATURE] Duplicate","articleBody":"#### Is your feature request related to a problem? Please describe.\r\n\r\nBot-created identified poll will receive `pollAnswer` updates from the Telegram server when users submit their choices (or retract their votes), which contain info about the voter (name, `uid`, etc.).\r\n\r\n#### Describe the solution you'd like\r\n\r\nCreate a `pollAnswer` class and implement related methods.\r\n\r\n```json\r\n\"poll_answer\": {\r\n \"poll_id\": \"0000000000000000000\",\r\n \"user\": {\r\n \"id\": 000000000,\r\n \"is_bot\": false,\r\n \"first_name\": \"first name\",\r\n \"last_name\": \"last name\",\r\n \"username\": \"username\",\r\n \"language_code\": \"en\"\r\n },\r\n \"option_ids\": [ 0 ]\r\n }\r\n```\r\n\r\nP.S. `option_ids` might be `[]` when a user retract his/her vote, or `[0, 1]` for a multiple-choice poll\r\n\r\n#### Describe alternatives you've considered\r\n\r\n`PollOption` class has a `voters` property, but that only indicates the number of voters of an option. By maintaining a hash table (or something like that) in the memory and updating it every time a `poll_answer` update was fetched, a bot could actually know the exact status of a poll (of course, the poll can't be an anonymous one).\r\n\r\nThis feature could be extremely useful if we need to create a weighted vote, where different voters have different weights according to the demand. (ex. deciding which movie to see tonight, and active users will have higher weights)\r\n\r\n#### Additional context\r\nNone\r\n","author":{"url":"https://github.com/XieJiSS","@type":"Person","name":"XieJiSS"},"datePublished":"2020-03-06T12:24:46Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/1813"}
| 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:c3f2723b-19d6-a0fa-007b-5149d92d3ebe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E172:2C4BED:4B5290C:5F63EAE:6B025889 |
| html-safe-nonce | 1296881864df578b7b4e7809ef659fbbac78a9145e49807f5aa0e8ded875e669 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTcyOjJDNEJFRDo0QjUyOTBDOjVGNjNFQUU6NkIwMjU4ODkiLCJ2aXNpdG9yX2lkIjoiNjMxNjQwMjg1NTQ3NzY2Mzg4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | decdaefabf7ae394e779e7d0c0d8da143be13ee2ec7d72bc90f042f1ea0066a3 |
| hovercard-subject-tag | issue:576899272 |
| 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/1813/issue_layout |
| twitter:image | https://opengraph.githubassets.com/06f8d96db829754b67f7edd3d87836207e5197eabe2fce80cd82678aa62cdd2a/python-telegram-bot/python-telegram-bot/issues/1813 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/06f8d96db829754b67f7edd3d87836207e5197eabe2fce80cd82678aa62cdd2a/python-telegram-bot/python-telegram-bot/issues/1813 |
| og:image:alt | Is your feature request related to a problem? Please describe. Bot-created identified poll will receive pollAnswer updates from the Telegram server when users submit their choices (or retract their... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | XieJiSS |
| 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