Post content
We've just released v21.4. Thank you to everyone who contributed to this release. As usual, upgrade using pip install -U python-telegram-bot. This release brings support for Bot API versions 7.5, 7.6, and 7.7. Moreover, we have added initial support for Python 3.13 Beta and a new convenience helper for working with MessageEntity objects containing UTF-16 encoded characters. For the full list of changes and improvements, please see the below changelog. Major Changes • Full Support for API 7.5 (#4328, #4316, #4315, #4312 closes #4310, #4311) • Full Support for API 7.6 (#4333 closes #4331, #4344, #4341, #4334, #4335, #4351, #4342, #4348) • Full Support for API 7.7 (#4356 closes #4355) • Drop python-telegram-bot-raw And Switch to pyproject.toml Based Packaging (#4288 closes #4129 and #4296) • Deprecate Inclusion of successful_payment in Message.effective_attachment (#4365 closes #4350) New Features • Add Support for Python 3.13 Beta (#4253) • Add filters.PAID_MEDIA (#4357) • Log Received Data on Deserialization Errors (#4304) • Add MessageEntity.adjust_message_entities_to_utf_16 Utility Function (#4323 by Antares0982 closes #4319) • Make Argument bot of TelegramObject.de_json Optional (#4320) Documentation Improvements • Documentation Improvements (#4303 closes #4301) • Restructure Readme (#4362) • Fix Link-Check Workflow (#4332) Internal Changes • Automate PyPI Releases (#4364 closes #4318) • Add mise-en-place to .gitignore (#4300) • Use a Composite Action for Testing Type Completeness (#4367) • Stabilize Some Concurrency Usages in Test Suite (#4360) • Add a Test Case for MenuButton (#4363) • Extend SuccessfulPayment Test (#4349) • Small Fixes for test_stars.py (#4347) • Use Python 3.13 Beta 3 in Test Suite (#4336) Dependency Updates • Bump ruff and Add New Rules (#4329) • Bump pre-commit Hooks to Latest Versions (#4337) • Add Lower Bound for flaky Dependency (#4322 by Palaptin) • Bump pytest from 8.2.1 to 8.2.2 (#4294)