Title: [Discussion] kwargs for input-only classes (like `InputMedia*`) · Issue #2607 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: [Discussion] kwargs for input-only classes (like `InputMedia*`) · Issue #2607 · python-telegram-bot/python-telegram-bot
X Title: [Discussion] kwargs for input-only classes (like `InputMedia*`) · Issue #2607 · python-telegram-bot/python-telegram-bot
Description: There are some TG classes that are used for input only, but where we still accept kwargs - which is mainly intended for the classes that we de-json TG data. This sometimes leads to confusion like here https://t.me/pythontelegrambotgroup/...
Open Graph Description: There are some TG classes that are used for input only, but where we still accept kwargs - which is mainly intended for the classes that we de-json TG data. This sometimes leads to confusion like h...
X Description: There are some TG classes that are used for input only, but where we still accept kwargs - which is mainly intended for the classes that we de-json TG data. This sometimes leads to confusion like h...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/2607
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Discussion] kwargs for input-only classes (like `InputMedia*`)","articleBody":"There are some TG classes that are used for input only, but where we still accept kwargs - which is mainly intended for the classes that we de-json TG data. This sometimes leads to confusion like here https://t.me/pythontelegrambotgroup/503803 b/c additional arguments are silently ignored.\r\n\r\nThis is somehow the same problem as in #1924.\r\n\r\nI see three possible ways to proceed with this:\r\n\r\n1. keep `**kwargs` and do nothing\r\n2. Drop `**kwargs` for classes that are exclusively used for input. This has a minor risk of TG actually sending them back to us at some point …\r\n3. keep `**kwargs` but issue warnings when receiving unexpected arguments\r\n\r\nI think we should at least try to apply any of the solutions consistently - not sure if that's currently the case.","author":{"url":"https://github.com/Bibo-Joshi","@type":"Person","name":"Bibo-Joshi"},"datePublished":"2021-07-26T13:37:28Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/2607"}
| 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:2affddb3-8dc8-7c59-645f-f360f99dbdcc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFE6:19B6A2:21702A9:2C01E9E:6B0242F5 |
| html-safe-nonce | 3172075917d5b4946d9d1e5bb2f8ddc753195243b8cdbd0704260a639fc901ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkU2OjE5QjZBMjoyMTcwMkE5OjJDMDFFOUU6NkIwMjQyRjUiLCJ2aXNpdG9yX2lkIjoiMjQ3NzI3NDU4MTkyOTQ0NDA4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 58f2d82385ebe7377012f9d03ae94f808b7c91326efddd3797d5e3db0fe101f6 |
| hovercard-subject-tag | issue:952914808 |
| 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/2607/issue_layout |
| twitter:image | https://opengraph.githubassets.com/77990a93d876d5e0693564816ebed7fb254aa2ddb70c484c81f3c245568a294f/python-telegram-bot/python-telegram-bot/issues/2607 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/77990a93d876d5e0693564816ebed7fb254aa2ddb70c484c81f3c245568a294f/python-telegram-bot/python-telegram-bot/issues/2607 |
| og:image:alt | There are some TG classes that are used for input only, but where we still accept kwargs - which is mainly intended for the classes that we de-json TG data. This sometimes leads to confusion like h... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Bibo-Joshi |
| 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