Title: Overhaul & extension of constants · Issue #2104 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: Overhaul & extension of constants · Issue #2104 · python-telegram-bot/python-telegram-bot
X Title: Overhaul & extension of constants · Issue #2104 · python-telegram-bot/python-telegram-bot
Description: We have made you a wrapper you can't refuse. Contribute to python-telegram-bot/python-telegram-bot development by creating an account on GitHub.
Open Graph Description: We have made you a wrapper you can't refuse. Contribute to python-telegram-bot/python-telegram-bot development by creating an account on GitHub.
X Description: We have made you a wrapper you can't refuse. Contribute to python-telegram-bot/python-telegram-bot development by creating an account on GitHub.
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Overhaul & extension of constants","articleBody":"We have constants in different locations, e.g.\r\n\r\n* `telegram.constants`\r\n* class attributes of `telegram.ParseMode`\r\n* class attributes of `telegram.Dice`\r\n\r\nThat should be unified, i.e.:\r\n\r\n- [x] Gather all constants in `telegram.constants` (I guess a regex-search for `SCREAMING_SNAIL_CASE` should do the trick …)\r\n- [x] Repace the class attributes by links to the constant from `telegram.constant`, (e.g. `ParseMode.HTML = constants.PARSE_MODE_HTML`)\r\n- [x] Add additional links, where suitable (e.g. `Message.MAX_LENGTH = constants.MAX_MESSAGE_LENGTH`)\r\n\r\nMoreover, in light of the recent TG update, we should add\r\n\r\n- [x] constants for user ID `777000` and `1087968824`, which act as senders for forwarded channel posts and messages from anonymous admins (see [here](https://github.com/python-telegram-bot/python-telegram-bot/wiki/Code-snippets#exclude-messages-from-anonymous-admins))\r\n- [x] Add properties `is_anonymous_admin` and `is_service_chat` (or similar namings) to `User` and `Chat` that compare the user/chat_id to the IDs menotioned above\r\n\r\n*Edit:* there should be notes on the constants, if they are not documented. And going through the docs to see if there are constants not covered already probably won't hurt …","author":{"url":"https://github.com/Bibo-Joshi","@type":"Person","name":"Bibo-Joshi"},"datePublished":"2020-10-01T15:17:19Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/2104"}
| 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 | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:fde0c033-a0ab-f6c5-4b38-8f55dce767b4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D766:1FAE:218FC0C:2C3E25A:6B02798B |
| html-safe-nonce | de5d3b0d19355c33d48922ee27004c3c8882da3e13459099e75bbf19c78c57e5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzY2OjFGQUU6MjE4RkMwQzoyQzNFMjVBOjZCMDI3OThCIiwidmlzaXRvcl9pZCI6IjMzNTUyNzYyMTc3NjE4MjMxMTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8fa84d19a2553fea5fd8aee6de34db7bb9328289dc4f7f6ee827a6f1b8bfe759 |
| hovercard-subject-tag | repository:38696925 |
| 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/python-telegram-bot/python-telegram-bot/issues/2104 |
| twitter:image | https://opengraph.githubassets.com/5393ec57538849bb0cc6331553beb3e47db3148a3a6906c59994692df4f32d94/python-telegram-bot/python-telegram-bot |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5393ec57538849bb0cc6331553beb3e47db3148a3a6906c59994692df4f32d94/python-telegram-bot/python-telegram-bot |
| og:image:alt | We have made you a wrapper you can't refuse. Contribute to python-telegram-bot/python-telegram-bot development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-cache |
| 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