Post content
We’ve just released v20.6. Thank you to everyone who contributed to this release. As usual, upgrade using pip install -U python-telegram-bot. This release brings full support for Bot API 6.9. Moreover, it removes backward compatibility for functionality deprecated in API 6.8. This is in line with our stability policy. For the full list of changes and improvements, please see the below changelog. Major Changes • Drop Backward Compatibility Layer Introduced in #3853 (API 6.8) (#3873) • Full Support for Bot API 6.9 (#3898) New Features • Add Rich Equality Comparison to WriteAccessAllowed (#3911 closes #3909) • Add __repr__ Methods Added in #3826 closes #3770 to Sphinx Documentation (#3901 closes #3889) • Add String Representation for Selected Classes (#3826 closes #3770) Minor Changes • Add Support Python 3.12 (#3915) • Documentation Improvements (#3910) Internal Changes • Verify Type Hints for Bot Method & Telegram Class Parameters (#3868) • Move Bot API Tests to Separate Workflow File (#3912) • Fix Failing file_size Tests (#3906) • Set Threshold for DeepSource’s PY-R1000 to High (#3888) • One-Time Code Formatting Improvement via --preview Flag of black (#3882) • Move Dunder Methods to the Top of Class Bodies (#3883) • Remove Superfluous Defaults.__ne__ (#3884) Dependency Updates • pre-commit autoupdate (#3876) • Update pre-commit Dependencies (#3916) • Bump actions/checkout from 3 to 4 (#3914) • Update httpx requirement from ~=0.24.1 to ~=0.25.0 (#3891) • Bump furo from 2023.8.19 to 2023.9.10 (#3890) • Bump sphinx from 7.2.5 to 7.2.6 (#3892) • Update tornado requirement from ~=6.2 to ~=6.3.3 (#3675) • Bump pytest from 7.4.0 to 7.4.2 (#3881)