Post content
We've just released v21.10. 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 8.2 and includes a bug fix for the deserialization of Gift and Gifts. Moreover, with the update of the optional apscheduler dependency used for the JobQueue, we have deprecated support for pytz timezones. Please switch to using zoneinfo.ZoneInfo timezones after upgrading. For the full list of changes and improvements, please see the below changelog. Major Changes • Full Support for Bot API 8.2 (#4633) • Bump apscheduler & Deprecate pytz Support (#4582) New Features • Add Parameter pattern to JobQueue.jobs() (#4613 closes #4544) • Allow Input of Type Sticker for Several Methods (#4616 closes #4580) Bug Fixes • Ensure Forward Compatibility of Gift and Gifts (#4634 closes #4637) Documentation Improvements & Internal Changes • Use Custom Labels for dependabot PRs (#4621) • Remove Redundant pylint Suppressions (#4628) • Update Copyright to 2025 (#4631) • Refactor Module Structure and Tests for Star Payments Classes (#4615 closes #4593) • Unify datetime Imports (#4605 by @cuevasrja closes #4577) • Add Static Security Analysis of GitHub Actions Workflows (#4606) Dependency Updates • Bump astral-sh/setup-uv from 4.2.0 to 5.1.0 (#4625) • Bump codecov/codecov-action from 5.1.1 to 5.1.2 (#4622) • Bump actions/upload-artifact from 4.4.3 to 4.5.0 (#4623) • Bump github/codeql-action from 3.27.9 to 3.28.0 (#4624)