TGTGInsighttelegram intelligenceLIVE / telegram public index
← python-telegram-bot
python-telegram-bot avatar

TGINSIGHT POST

Post #139

@pythontelegrambotchannel

python-telegram-bot

Views21,700Post view count
PostedMar 603/06/2024, 09:34 PM
Post content

Post content

We’ve just released v21.0. Thank you to everyone who contributed to this release. As usual, upgrade using pip install -U python-telegram-bot. This update brings full support for Bot API 7.1. Moreover, it removes backward compatibility for functionality deprecated in API 7.0. This is in line with our stability policy. Moreover, this update brings a new major version. However, apart from the Bot API related removals, it does not contain any breaking changes and is backwards compatible to v20.x. The bump of the major version is solely intended to mark that the next step in PTBs development after the introduction of v20.0 in January 2023. Since then, we have been working actively on smoothing out rough edges of v20, which sometimes involved deprecating functionality. To not carry old baggage around forever and ensure that PTB remains maintainable, this deprecated functionality will have to be removed at some point. This version bump brings us closer to that point, while still keeping the promise of a stable user interface that we formalized with our explicit stability policy. For the full list of changes and improvements, please see below changelog. Major Changes • Remove Functionality Deprecated in API 7.0 (#4114 closes #4099) • API 7.1 (#4118) New Features • Add Parameter media_write_timeout to HTTPXRequest and Method ApplicationBuilder.media_write_timeout (#4120 closes #3864) • Handle Properties in TelegramObject.__setstate__ (#4134 closes #4111) Bug Fixes • Add Missing Slot to Updater (#4130 closes #4127) Documentation Improvements • Improve HTML Download of Documentation (#4146 closes #4050) • Documentation Improvements (#4109, #4116) • Update Copyright to 2024 (#4121 by @aelkheir closes #4041) Internal Changes • Apply pre-commit Checks More Widely (#4135) • Refactor and Overhaul test_official (#4087 closes #3874) • Run Unit Tests in PRs on Requirements Changes (#4144) • Make Updater.stop Independent of CancelledError (#4126) Dependency Updates • Relax Upper Bound for httpx Dependency (#4148) • Bump test-summary/action from 2.2 to 2.3 (#4142) • Update cachetools requirement from ~=5.3.2 to ~=5.3.3 (#4141) • Update httpx requirement from ~=0.26.0 to ~=0.27.0 (#4131)