Title: API Policy: `ReplyMarkup` · Issue #2868 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: API Policy: `ReplyMarkup` · Issue #2868 · python-telegram-bot/python-telegram-bot
X Title: API Policy: `ReplyMarkup` · Issue #2868 · python-telegram-bot/python-telegram-bot
Description: I just noticed that ptbs telegram.ReplyMarkup is in fact an invention of PTB, i.e. it's not defined by the official API docs. We should consider removing that class or at least making it private. IISC it's currently only used for type hi...
Open Graph Description: I just noticed that ptbs telegram.ReplyMarkup is in fact an invention of PTB, i.e. it's not defined by the official API docs. We should consider removing that class or at least making it private. I...
X Description: I just noticed that ptbs telegram.ReplyMarkup is in fact an invention of PTB, i.e. it's not defined by the official API docs. We should consider removing that class or at least making it privat...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/2868
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"API Policy: `ReplyMarkup`","articleBody":"I just noticed that ptbs `telegram.ReplyMarkup` is in fact an invention of PTB, i.e. it's not defined by the official API docs. We should consider removing that class or at least making it private.\r\n\r\nIISC it's currently only used for\r\n\r\n* type hinting - that could easily be replaced by a type alias\r\n* the static method `_check_keyboard_type` that's used in the inits of or `{Reply, Inline}KeyboardMarkup` - that could moved e.g. to `tg._utils`\r\n\r\nPersonally, I'd be in favor of just removing the class. @harshil21 IIRC you added the `_check_keyboard_type` method - what do you think?","author":{"url":"https://github.com/Bibo-Joshi","@type":"Person","name":"Bibo-Joshi"},"datePublished":"2022-01-18T07:21:34Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/2868"}
| 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:1325369f-4636-1282-7c23-987b3a407375 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 884E:14EB6E:2A17135:36FED86:6B026CDC |
| html-safe-nonce | 491c429523d3ebd2ec7a6c2b0b28e601f140d290068b21de7da77f6a63cf8e5f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODRFOjE0RUI2RToyQTE3MTM1OjM2RkVEODY6NkIwMjZDREMiLCJ2aXNpdG9yX2lkIjoiNTgyNTQ3MjIyMzY0MDcxMDM2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d43333f809bdec55f575c57dbf6bfa45a2c20f18c631e9214739480f4953d95e |
| hovercard-subject-tag | issue:1106558302 |
| 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/2868/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8148f687f5c1f677460829604239f7ce53a000b02a0a06e6d4885ba87a1c595b/python-telegram-bot/python-telegram-bot/issues/2868 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8148f687f5c1f677460829604239f7ce53a000b02a0a06e6d4885ba87a1c595b/python-telegram-bot/python-telegram-bot/issues/2868 |
| og:image:alt | I just noticed that ptbs telegram.ReplyMarkup is in fact an invention of PTB, i.e. it's not defined by the official API docs. We should consider removing that class or at least making it private. I... |
| 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