Title: Integrating chat_data and user_data with respective Objects · Issue #1080 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: Integrating chat_data and user_data with respective Objects · Issue #1080 · python-telegram-bot/python-telegram-bot
X Title: Integrating chat_data and user_data with respective Objects · Issue #1080 · python-telegram-bot/python-telegram-bot
Description: Instead of passing them via pass_chat_data and pass_user_data explicitly, the user and chat data should be attached to the actual wrapper objects: update.effective_user.data, update.effective_chat.data This should happen in the same fash...
Open Graph Description: Instead of passing them via pass_chat_data and pass_user_data explicitly, the user and chat data should be attached to the actual wrapper objects: update.effective_user.data, update.effective_chat....
X Description: Instead of passing them via pass_chat_data and pass_user_data explicitly, the user and chat data should be attached to the actual wrapper objects: update.effective_user.data, update.effective_chat....
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/1080
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Integrating chat_data and user_data with respective Objects","articleBody":"Instead of passing them via `pass_chat_data` and `pass_user_data` explicitly, the user and chat data should be attached to the actual wrapper objects:\r\n`update.effective_user.data`,\r\n`update.effective_chat.data`\r\n\r\nThis should happen in the same fashion as many of the ptb objects get a `bot` injected.\r\n\r\nAs user_data and chat_data are only pass_ -able when they actually exist, I think this could be a good way of integrating everything a bit better by removing all the pass_* arguments.\r\n\r\nThis may happen either in preparation for #1026, or **as a replacement for it** (as the number of `pass_*` statements would sink). Also, it'd be consistent with [Pyrogram](https://github.com/pyrogram/pyrogram).","author":{"url":"https://github.com/JosXa","@type":"Person","name":"JosXa"},"datePublished":"2018-04-22T19:57:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1080/python-telegram-bot/issues/1080"}
| 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:dda38538-91d2-26fc-2ce9-8defdeb64291 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B4E:33F53B:A82D75:E1FDFB:6A6014F1 |
| html-safe-nonce | 71cbeea16fb9f7e7c10a660109b60a31160f213d02742ef1d85bed1451b14929 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjRFOjMzRjUzQjpBODJENzU6RTFGREZCOjZBNjAxNEYxIiwidmlzaXRvcl9pZCI6IjQxMDUwMDExNjA1NzA1NzQwNjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 76440db221e0032116299510a829e74c0b27c4e1e43adc152930d3b487f30c92 |
| hovercard-subject-tag | issue:316608226 |
| 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/1080/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2586048e1677c2f619e1ae4472343a1c64a0db96f4b5222fcdd32435facc1769/python-telegram-bot/python-telegram-bot/issues/1080 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2586048e1677c2f619e1ae4472343a1c64a0db96f4b5222fcdd32435facc1769/python-telegram-bot/python-telegram-bot/issues/1080 |
| og:image:alt | Instead of passing them via pass_chat_data and pass_user_data explicitly, the user and chat data should be attached to the actual wrapper objects: update.effective_user.data, update.effective_chat.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JosXa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 399e662401f6b9a532ecd80b305d17b9efadd864681448a290ab2901b98f288a |
| 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 | 2f4d68ce236d24a2cd682f94ef8bd8537c09d73d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width