Title: [BUG] Message.photo is set to an empty list when not provided · Issue #2606 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: [BUG] Message.photo is set to an empty list when not provided · Issue #2606 · python-telegram-bot/python-telegram-bot
X Title: [BUG] Message.photo is set to an empty list when not provided · Issue #2606 · python-telegram-bot/python-telegram-bot
Description: Steps to reproduce Generate a Message object without photo set. Check the photo parameter Expected behaviour .photo should be None Actual behaviour .photo is an empty list Wrong line: python-telegram-bot/telegram/message.py Line 515 in 1...
Open Graph Description: Steps to reproduce Generate a Message object without photo set. Check the photo parameter Expected behaviour .photo should be None Actual behaviour .photo is an empty list Wrong line: python-telegr...
X Description: Steps to reproduce Generate a Message object without photo set. Check the photo parameter Expected behaviour .photo should be None Actual behaviour .photo is an empty list Wrong line: python-telegr...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/2606
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] Message.photo is set to an empty list when not provided","articleBody":"\u003c!--\nThanks for reporting issues of python-telegram-bot!\n\nUse this template to notify us if you found a bug.\n\nTo make it easier for us to help you please enter detailed information below.\n\nPlease note, we only support the latest version of python-telegram-bot and\nmaster branch. Please make sure to upgrade & recreate the issue on the latest\nversion prior to opening an issue.\n-->\n### Steps to reproduce\n1. Generate a Message object without photo set.\n\n2. Check the photo parameter\n\n\n### Expected behaviour\n.photo should be None\n\n### Actual behaviour\n.photo is an empty list\n\n\nWrong line: https://github.com/python-telegram-bot/python-telegram-bot/blob/1fdaaac8094c9d76c34c8c8e8c9add16080e75e7/telegram/message.py#L515","author":{"url":"https://github.com/Poolitzer","@type":"Person","name":"Poolitzer"},"datePublished":"2021-07-25T18:22:56Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/2606"}
| 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:2796f786-5dec-704d-83bc-adaf87fcba33 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DEAE:39B9E6:D4811A:115C74A:6B027563 |
| html-safe-nonce | 2ead3ef37d39faf286f7d954a31a69caa928c389dffb3a64caafce004910befe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUFFOjM5QjlFNjpENDgxMUE6MTE1Qzc0QTo2QjAyNzU2MyIsInZpc2l0b3JfaWQiOiIzMTk3MTI4MDE0MzIwMjY4NjQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 945903ccaa324924af78143d5c7e58eeec3b683c7f0c6e15f58af37211d63e9b |
| hovercard-subject-tag | issue:952329047 |
| 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/2606/issue_layout |
| twitter:image | https://opengraph.githubassets.com/18507bdd12b8988d489d2e3e245971b31f35295286ffa0e4298a20f53d105c39/python-telegram-bot/python-telegram-bot/issues/2606 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/18507bdd12b8988d489d2e3e245971b31f35295286ffa0e4298a20f53d105c39/python-telegram-bot/python-telegram-bot/issues/2606 |
| og:image:alt | Steps to reproduce Generate a Message object without photo set. Check the photo parameter Expected behaviour .photo should be None Actual behaviour .photo is an empty list Wrong line: python-telegr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Poolitzer |
| 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