Title: [FEATURE] Infere bot commands from CommandHandler and set them automatically · Issue #1859 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: [FEATURE] Infere bot commands from CommandHandler and set them automatically · Issue #1859 · python-telegram-bot/python-telegram-bot
X Title: [FEATURE] Infere bot commands from CommandHandler and set them automatically · Issue #1859 · python-telegram-bot/python-telegram-bot
Description: Is your feature request related to a problem? Please describe. Even with API 4.7s new Bot.set_my_commands, setting commands will be tiresome Describe the solution you'd like Add description attribute to CommandHandler Add Disptacher.set_...
Open Graph Description: Is your feature request related to a problem? Please describe. Even with API 4.7s new Bot.set_my_commands, setting commands will be tiresome Describe the solution you'd like Add description attribu...
X Description: Is your feature request related to a problem? Please describe. Even with API 4.7s new Bot.set_my_commands, setting commands will be tiresome Describe the solution you'd like Add description att...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/1859
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[FEATURE] Infere bot commands from CommandHandler and set them automatically","articleBody":"#### Is your feature request related to a problem? Please describe.\r\nEven with API 4.7s new `Bot.set_my_commands`, setting commands will be tiresome\r\n\r\n#### Describe the solution you'd like\r\n* Add `description` attribute to `CommandHandler`\r\n* Add `Disptacher.set_commands(update=False, delete=False, add=True)` that\r\n * gets the bots command from the registered `CommandHandlers`\r\n * Checks that they are valid for `BotCommand` and `set_my_commands`\r\n * gets current commands\r\n * sets new commands with options:\r\n * `update`: If `False` don't change a command if already set\r\n * `delete`: If `True`, delete commands that were set but currently don't have a corresponding handler\r\n * `add`: If `False` and currently commands are set, doesn't add new ones\r\n\r\n#### Describe alternatives you've considered\r\nTiresome handwork\r\n\r\n#### Additional context\r\n`Bot.set_my_commands` is very new, so maybe wait till the next API update to make sure Telegram doesn't change the methods directly\r\n","author":{"url":"https://github.com/Bibo-Joshi","@type":"Person","name":"Bibo-Joshi"},"datePublished":"2020-03-30T20:21:09Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/1859"}
| 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:2f34a93f-9772-636c-e6f1-479d0a53b834 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C42:23DB5F:14F1D95:1A4A60C:6B025880 |
| html-safe-nonce | f145fb6b56253b04ac1e59d68af862a024a15597a93fb7e9064d73413feb1206 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzQyOjIzREI1RjoxNEYxRDk1OjFBNEE2MEM6NkIwMjU4ODAiLCJ2aXNpdG9yX2lkIjoiMzI3NzI1OTM1NjYwMDY4NjcyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4c8a15570172b1a713ba639d8ad5333699038ad54fa3668c7b0e6594199fbd8e |
| hovercard-subject-tag | issue:590568153 |
| 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/1859/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4c8f751e4c8a9340cc3aa54d9941f4fdd0a1d1e8d443e17672d1d31f95175f50/python-telegram-bot/python-telegram-bot/issues/1859 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4c8f751e4c8a9340cc3aa54d9941f4fdd0a1d1e8d443e17672d1d31f95175f50/python-telegram-bot/python-telegram-bot/issues/1859 |
| og:image:alt | Is your feature request related to a problem? Please describe. Even with API 4.7s new Bot.set_my_commands, setting commands will be tiresome Describe the solution you'd like Add description attribu... |
| 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