Releases: python-telegram-bot/python-telegram-bot
v22.1
v22.0
v21.11.1
Version 21.11.1
Released 2025-03-01
This is the technical changelog for version 21.11.1. More elaborate release notes can be found in the news channel @pythontelegrambotchannel.
Documentation Improvements
- Fix ReadTheDocs Build (#4695)
v21.11
Version 21.11
Released 2025-03-01
This is the technical changelog for version 21.11. More elaborate release notes can be found in the news channel @pythontelegrambotchannel.
Major Changes and New Features
- Full Support for Bot API 8.3 (#4676 closes #4677, #4682 by @aelkheir, #4690 by @aelkheir, #4691 by @aelkheir)
- Make
provider_token
Argument Optional (#4689) - Remove Deprecated
InlineQueryResultArticle.hide_url
(#4640 closes #4638) - Accept
datetime.timedelta
Input inBot
Method Parameters (#4651) - Extend Customization Support for
Bot.base_(file_)url
(#4632 closes #3355) - Support
allow_paid_broadcast
inAIORateLimiter
(#4627 closes #4578) - Add
BaseUpdateProcessor.current_concurrent_updates
(#4626 closes #3984)
Minor Changes and Bug Fixes
- Add Bootstrapping Logic to
Application.run_*
(#4673 closes #4657) - Fix a Bug in
edit_user_star_subscription
(#4681 by @vavasik800) - Simplify Handling of Empty Data in
TelegramObject.de_json
and Friends (#4617 closes #4614)
Documentation Improvements
- Documentation Improvements (#4641)
- Overhaul Admonition Insertion in Documentation (#4462 closes #4414)
Internal Changes
- Stabilize Linkcheck Test (#4693)
- Bump
pre-commit
Hooks to Latest Versions (#4643) - Refactor Tests for
TelegramObject
Classes with Subclasses (#4654 closes #4652) - Use Fine Grained Permissions for GitHub Actions Workflows (#4668)
Dependency Updates
v21.10
Version 21.10
Released 2025-01-03
This is the technical changelog for version 21.10. More elaborate release notes can be found in the news channel @pythontelegrambotchannel.
Major Changes
New Features
- Add Parameter
pattern
toJobQueue.jobs()
(#4613 closes #4544) - Allow Input of Type
Sticker
for Several Methods (#4616 closes #4580)
Bug Fixes
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
v21.9
Version 21.9
Released 2024-12-07
This is the technical changelog for version 21.9. More elaborate release notes can be found in the news channel @pythontelegrambotchannel.
Major Changes
Minor Changes
- Use
MessageLimit.DEEP_LINK_LENGTH
inhelpers.create_deep_linked_url
(#4597 by @nemacysts) - Allow
Sequence
Input forallowed_updates
inApplication
andUpdater
Methods (#4589 by @nemacysts)
Dependency Updates
v21.8
Version 21.8
Released 2024-12-01
This is the technical changelog for version 21.8. More elaborate release notes can be found in the news channel @pythontelegrambotchannel.
Major Changes
Documentation Improvements
- Documentation Improvements (#4565 by @Snehashish06, #4573)
v21.7
Version 21.7
Released 2024-11-04
This is the technical changelog for version 21.7. More elaborate release notes can be found in the news channel @pythontelegrambotchannel.
Major Changes
- Full Support for Bot API 7.11 (#4546 closes #4543)
- Add
Message.reply_paid_media
(#4551) - Drop Support for Python 3.8 (#4398 by @elpekenin)
Minor Changes
- Allow
Sequence
inApplication.add_handlers
(#4531 by @roast-lord closes #4530) - Improve Exception Handling in
File.download_*
(#4542) - Use Stable Python 3.13 Release in Test Suite (#4535)
Documentation Improvements
- Documentation Improvements (#4536 by @Ecode2, #4556)
- Fix Linkcheck Workflow (#4545)
- Use
sphinx-build-compatibility
to Keep Sphinx Compatibility (#4492)
Internal Changes
- Improve Test Instability Caused by
Message
Fixtures (#4507) - Stabilize Some Flaky Tests (#4500)
- Reduce Creation of HTTP Clients in Tests (#4493)
- Update
pytest-xdist
Usage (#4491) - Fix Failing Tests by Making Them Independent (#4494)
- Introduce Codecov's Test Analysis (#4487)
- Maintenance Work on
Bot
Tests (#4489) - Introduce
conftest.py
for File Related Tests (#4488) - Update Issue Templates to Use Issue Types (#4553)
- Update Automation to Label Changes (#4552)
Dependency Updates
v21.6
Version 21.6
Released 2024-09-19
This is the technical changelog for version 21.6. More elaborate release notes can be found in the news channel @pythontelegrambotchannel.
New Features
- Full Support for Bot API 7.10 (#4461 closes #4459, #4460, #4463 by aelkheir, #4464)
- Add Parameter
httpx_kwargs
toHTTPXRequest
(#4451 closes #4424)
Minor Changes
- Improve Type Completeness (#4466)
Internal Changes
- Update Python 3.13 Test Suite to RC2 (#4471)
- Enforce the
offline_bot
Fixture inTest*WithoutRequest
(#4465) - Make Tests for
telegram.ext
Independent of Networking (#4454) - Rename Testing Base Classes (#4453)
Dependency Updates
- Bump
pytest
from 8.3.2 to 8.3.3 (#4475)
v21.5
Version 21.5
Released 2024-09-01
This is the technical changelog for version 21.5. More elaborate release notes can be found in the news channel @pythontelegrambotchannel.
Major Changes
New Features
- Add
MessageEntity.shift_entities
andMessageEntity.concatenate
(#4376 closes #4372) - Add Parameter
game_pattern
toCallbackQueryHandler
(#4353 by @jainamoswal closes #4269) - Add Parameter
read_file_handle
toInputFile
(#4388 closes #4339)
Documentation Improvements
- Bugfix for "Available In" Admonitions (#4413)
- Documentation Improvements (#4400 closes #4446, #4448 by @Palaptin)
- Document Return Types of
RequestData
Members (#4396) - Add Introductory Paragraphs to Telegram Types Subsections (#4389 by @mohdyusuf2312 closes #4380)
- Start Adapting to RTD Addons (#4386)
Minor and Internal Changes
- Remove Surplus Logging from
Updater
Network Loop (#4432 by @MartinHjelmare) - Add Internal Constants for Encodings (#4378 by @elpekenin)
- Improve PyPI Automation (#4375 closes #4373)
- Update Test Suite to New Test Channel Setup (#4435)
- Improve Fixture Usage in
test_message.py
(#4431 by @Palaptin) - Update Python 3.13 Test Suite to RC1 (#4415)
- Bump
ruff
and Add New Rules (#4416)
Dependency Updates
- Update
cachetools
requirement from <5.5.0,>=5.3.3 to >=5.3.3,<5.6.0 (#4437) - Bump
sphinx
from 7.4.7 to 8.0.2 andfuro
from 2024.7.18 to 2024.8.6 (#4412) - Bump
test-summary/action
from 2.3 to 2.4 (#4410) - Bump
pytest
from 8.2.2 to 8.3.2 (#4403) - Bump
dependabot/fetch-metadata
from 2.1.0 to 2.2.0 (#4411) - Update
cachetools
requirement from ~=5.3.3 to >=5.3.3,<5.5.0 (#4390) - Bump
sphinx
from 7.3.7 to 7.4.7 (#4395) - Bump
furo
from 2024.5.6 to 2024.7.18 (#4392)