Title: [FEATURE] Extensions of Defaults · Issue #1797 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: [FEATURE] Extensions of Defaults · Issue #1797 · python-telegram-bot/python-telegram-bot
X Title: [FEATURE] Extensions of Defaults · Issue #1797 · python-telegram-bot/python-telegram-bot
Description: Possible candidates to add to the Defaults concept: tzinfo We should use Defauts.tzinfo as default instead of UTC … That would mean: When a job is created without setting tzinfo explicitly, use Defaults.tzinfo When calling JobQueue._put(...
Open Graph Description: Possible candidates to add to the Defaults concept: tzinfo We should use Defauts.tzinfo as default instead of UTC … That would mean: When a job is created without setting tzinfo explicitly, use Def...
X Description: Possible candidates to add to the Defaults concept: tzinfo We should use Defauts.tzinfo as default instead of UTC … That would mean: When a job is created without setting tzinfo explicitly, use Def...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/1797
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[FEATURE] Extensions of Defaults","articleBody":"Possible candidates to add to the Defaults concept:\r\n\r\n## tzinfo\r\nWe should use Defauts.tzinfo as default instead of UTC … That would mean:\r\n\r\n* When a job is created without setting tzinfo explicitly, use Defaults.tzinfo\r\n* When calling JobQueue._put() with a naive `when`, use `when.replace(tzinfo=defaults.tzinfo)`\r\n This would basically not change the current set up, but just put it under the hood\r\n* Probably `Message.date` and all the friends should also use `defaults.tzinfo`, so basically every `datetime` instance occuring in the lib.\r\n\r\n## Arguments of Filters\r\n\r\n* Filters.command: allow commands *anywhere* in the text or not\r\n* Filters.{user, chat}: *allow_empty* (only relevant after #1757)\r\n\r\nHow to make it work: We would need to override those attributes on `dispatcher.add_handler` somehow. that's pretty much the only time, the filters and the dispatcher can see each other …\r\n\r\n## Dice.emoji\r\n\r\n* Only relevant after #1917. Also discussable, if this really is a good idea, as the emoji attribute of `Dice` is positional and not optional\r\n\r\n## ReplyKeyboardMarkup\r\n\r\n* `resize_keyboard`\r\n* `one_time_keyboard`\r\n\r\n# Redesign of `default_quote`\r\n\r\nRight now, `default_quote` get's passed from getting updates through all objects, whose attributes have a `Message` attribute and is set as attribute in `Message`. But as the `Message.reply_*` methods only work with a bot anyway, we could just access `Message.bot.defaults.default_quote`.\r\n\r\nSee #1965","author":{"url":"https://github.com/Bibo-Joshi","@type":"Person","name":"Bibo-Joshi"},"datePublished":"2020-02-27T18:55:11Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/1797"}
| 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:22c79b73-9189-a3f6-6cbe-e0d1dc81b202 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B688:1DC474:2F1A83:3E4B76:6B0253FF |
| html-safe-nonce | 544c82f634bf728ddfb2e50b0229c6a26e4d5bc147f2b72129ccfe4146a1d4b0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjg4OjFEQzQ3NDoyRjFBODM6M0U0Qjc2OjZCMDI1M0ZGIiwidmlzaXRvcl9pZCI6IjQ2ODg1NjU2NzI4MjgwOTc1MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b728908090062bc311b8b4943aa8e5abcaba244809a828154afeb581c188d104 |
| hovercard-subject-tag | issue:572286087 |
| 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/1797/issue_layout |
| twitter:image | https://opengraph.githubassets.com/da702275fbeefb9954c40fa6dd09c306f51042434ad4256b0678d925b6a35ebb/python-telegram-bot/python-telegram-bot/issues/1797 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/da702275fbeefb9954c40fa6dd09c306f51042434ad4256b0678d925b6a35ebb/python-telegram-bot/python-telegram-bot/issues/1797 |
| og:image:alt | Possible candidates to add to the Defaults concept: tzinfo We should use Defauts.tzinfo as default instead of UTC … That would mean: When a job is created without setting tzinfo explicitly, use Def... |
| 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