changes/LEGACY.rst
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 <https://t.me/pythontelegrambotchannel>_.
4695)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 <https://t.me/pythontelegrambotchannel>_.
4676 closes :issue:4677, :pr:4682 by aelkheir <https://github.com/aelkheir>, :pr:4690 by aelkheir <https://github.com/aelkheir>, :pr:4691 by aelkheir <https://github.com/aelkheir>_)provider_token Argument Optional (:pr:4689)InlineQueryResultArticle.hide_url (:pr:4640 closes :issue:4638)datetime.timedelta Input in Bot Method Parameters (:pr:4651)Bot.base_(file_)url (:pr:4632 closes :issue:3355)allow_paid_broadcast in AIORateLimiter (:pr:4627 closes :issue:4578)BaseUpdateProcessor.current_concurrent_updates (:pr:4626 closes :issue:3984)Application.run_* (:pr:4673 closes :issue:4657)edit_user_star_subscription (:pr:4681 by vavasik800 <https://github.com/vavasik800>_)TelegramObject.de_json and Friends (:pr:4617 closes :issue:4614)4641)4462 closes :issue:4414)4693)pre-commit Hooks to Latest Versions (:pr:4643)TelegramObject Classes with Subclasses (:pr:4654 closes :issue:4652)4668)actions/setup-python from 5.3.0 to 5.4.0 (:pr:4665)dependabot/fetch-metadata from 2.2.0 to 2.3.0 (:pr:4666)actions/stale from 9.0.0 to 9.1.0 (:pr:4667)astral-sh/setup-uv from 5.1.0 to 5.2.2 (:pr:4664)codecov/test-results-action from 1.0.1 to 1.0.2 (:pr:4663)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 <https://t.me/pythontelegrambotchannel>_.
4633)apscheduler & Deprecate pytz Support (:pr:4582)pattern to JobQueue.jobs() (:pr:4613 closes :issue:4544)Sticker for Several Methods (:pr:4616 closes :issue:4580)Gift and Gifts (:pr:4634 closes :issue:4637)dependabot PRs (:pr:4621)pylint Suppressions (:pr:4628)4631)4615 closes :issue:4593)datetime Imports (:pr:4605 by cuevasrja <https://github.com/cuevasrja>_ closes :issue:4577)4606)astral-sh/setup-uv from 4.2.0 to 5.1.0 (:pr:4625)codecov/codecov-action from 5.1.1 to 5.1.2 (:pr:4622)actions/upload-artifact from 4.4.3 to 4.5.0 (:pr:4623)github/codeql-action from 3.27.9 to 3.28.0 (:pr:4624)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 <https://t.me/pythontelegrambotchannel>_.
4594 closes :issue:4592)MessageLimit.DEEP_LINK_LENGTH in helpers.create_deep_linked_url (:pr:4597 by nemacysts <https://github.com/nemacysts>_)Sequence Input for allowed_updates in Application and Updater Methods (:pr:4589 by nemacysts <https://github.com/nemacysts>_)aiolimiter requirement from ~=1.1.0 to >=1.1,<1.3 (:pr:4595)pytest from 8.3.3 to 8.3.4 (:pr:4596)codecov/codecov-action from 4 to 5 (:pr:4585)pylint to v3.3.2 to Improve Python 3.13 Support (:pr:4590 by nemacysts <https://github.com/nemacysts>_)srvaroa/labeler from 1.11.1 to 1.12.0 (:pr:4586)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 <https://t.me/pythontelegrambotchannel>_.
4568, :pr:4566 closes :issue:4567, :pr:4572, :pr:4571, :pr:4570, :pr:4576, :pr:4574)4565 by Snehashish06, :pr:4573)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 <https://t.me/pythontelegrambotchannel>_.
4546 closes :issue:4543)Message.reply_paid_media (:pr:4551)4398 by elpekenin <https://github.com/elpekenin>_)Sequence in Application.add_handlers (:pr:4531 by roast-lord <https://github.com/roast-lord>_ closes :issue:4530)File.download_* (:pr:4542)4535)4536 by Ecode2 <https://github.com/Ecode2>_, :pr:4556)4545)sphinx-build-compatibility to Keep Sphinx Compatibility (:pr:4492)Message Fixtures (:pr:4507)4500)4493)pytest-xdist Usage (:pr:4491)4494)4487)Bot Tests (:pr:4489)conftest.py for File Related Tests (:pr:4488)4553)4552)srvaroa/labeler from 1.11.0 to 1.11.1 (:pr:4549)sphinx from 8.0.2 to 8.1.3 (:pr:4532)sphinxcontrib-mermaid from 0.9.2 to 1.0.0 (:pr:4529)srvaroa/labeler from 1.10.1 to 1.11.0 (:pr:4509)Bibo-Joshi/pyright-type-completeness from 1.0.0 to 1.0.1 (:pr:4510)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 <https://t.me/pythontelegrambotchannel>_.
4461 closes :issue:4459, :pr:4460, :pr:4463 by aelkheir <https://github.com/aelkheir>_, :pr:4464)httpx_kwargs to HTTPXRequest (:pr:4451 closes :issue:4424)4466)4471)offline_bot Fixture in Test*WithoutRequest (:pr:4465)telegram.ext Independent of Networking (:pr:4454)4453)pytest from 8.3.2 to 8.3.3 (:pr:4475)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 <https://t.me/pythontelegrambotchannel>_.
4429)4408)MessageEntity.shift_entities and MessageEntity.concatenate (:pr:4376 closes :issue:4372)game_pattern to CallbackQueryHandler (:pr:4353 by jainamoswal <https://github.com/jainamoswal>_ closes :issue:4269)read_file_handle to InputFile (:pr:4388 closes :issue:4339)4413)4400 closes :issue:4446, :pr:4448 by Palaptin <https://github.com/Palaptin>_)RequestData Members (:pr:4396)4389 by mohdyusuf2312 <https://github.com/mohdyusuf2312>_ closes :issue:4380)4386)Updater Network Loop (:pr:4432 by MartinHjelmare <https://github.com/MartinHjelmare>_)4378 by elpekenin <https://github.com/elpekenin>_)4375 closes :issue:4373)4435)test_message.py (:pr:4431 by Palaptin <https://github.com/Palaptin>_)4415)ruff and Add New Rules (:pr:4416)cachetools requirement from <5.5.0,>=5.3.3 to >=5.3.3,<5.6.0 (:pr:4437)sphinx from 7.4.7 to 8.0.2 and furo from 2024.7.18 to 2024.8.6 (:pr:4412)test-summary/action from 2.3 to 2.4 (:pr:4410)pytest from 8.2.2 to 8.3.2 (:pr:4403)dependabot/fetch-metadata from 2.1.0 to 2.2.0 (:pr:4411)cachetools requirement from ~=5.3.3 to >=5.3.3,<5.5.0 (:pr:4390)sphinx from 7.3.7 to 7.4.7 (:pr:4395)furo from 2024.5.6 to 2024.7.18 (:pr:4392)Released 2024-07-12
This is the technical changelog for version 21.4. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
4328, :pr:4316, :pr:4315, :pr:4312 closes :issue:4310, :pr:4311)4333 closes :issue:4331, :pr:4344, :pr:4341, :pr:4334, :pr:4335, :pr:4351, :pr:4342, :pr:4348)4356 closes :issue:4355)python-telegram-bot-raw And Switch to pyproject.toml Based Packaging (:pr:4288 closes :issue:4129 and :issue:4296)successful_payment in Message.effective_attachment (:pr:4365 closes :issue:4350)4253)filters.PAID_MEDIA (:pr:4357)4304)MessageEntity.adjust_message_entities_to_utf_16 Utility Function (:pr:4323 by Antares0982 <https://github.com/Antares0982>_ closes :issue:4319)bot of TelegramObject.de_json Optional (:pr:4320)4303 closes :issue:4301)4362)4332)4364 closes :issue:4318)mise-en-place to .gitignore (:pr:4300)4367)4360)MenuButton (:pr:4363)SuccessfulPayment Test (:pr:4349)test_stars.py (:pr:4347)4336)ruff and Add New Rules (:pr:4329)pre-commit Hooks to Latest Versions (:pr:4337)flaky Dependency (:pr:4322 by Palaptin <https://github.com/Palaptin>_)pytest from 8.2.1 to 8.2.2 (:pr:4294)Released 2024-06-07
This is the technical changelog for version 21.3. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
4286, :pr:4276 closes :issue:4275, :pr:4285, :pr:4283, :pr:4280, :pr:4278, :pr:4279)python-telegram-bot-raw (:pr:4270)4266 closes :issue:4244)chat_id to ChatMemberHandler (:pr:4290 by uniquetrij <https://github.com/uniquetrij>_ closes :issue:4287)4264 closes :issue:4240)setuptools to requirements-dev.txt (:pr:4282)4265)pytest from 8.2.0 to 8.2.1 (:pr:4272)Released 2024-05-20
This is the technical changelog for version 21.2. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
4246, :pr:4260, :pr:4243, :pr:4248, :pr:4242 closes :issue:4236, :pr:4247 by aelkheir <https://github.com/aelkheir>_)4245)PTBDeprecationWarning (:pr:4262 closes :issue:4261)CallbackContext (:pr:4222)Application.post_stop Only if Application.stop was called (:pr:4211 closes :issue:4210)SystemExit raised in Handlers (:pr:4157 closes :issue:4155 and :issue:4156)Birthdate.to_date Return a datetime.date Object (:pr:4251)4217)ruff Config (:pr:4250)4238)furo from 2024.4.27 to 2024.5.6 (:pr:4252)pre-commit autoupdate (:pr:4239)pytest from 8.1.1 to 8.2.0 (:pr:4231)dependabot/fetch-metadata from 2.0.0 to 2.1.0 (:pr:4228)pytest-asyncio from 0.21.1 to 0.21.2 (:pr:4232)pytest-xdist from 3.6.0 to 3.6.1 (:pr:4233)furo from 2024.1.29 to 2024.4.27 (:pr:4230)srvaroa/labeler from 1.10.0 to 1.10.1 (:pr:4227)pytest from 7.4.4 to 8.1.1 (:pr:4218)sphinx from 7.2.6 to 7.3.7 (:pr:4215)pytest-xdist from 3.5.0 to 3.6.0 (:pr:4215)Released 2024-04-15
This is the technical changelog for version 21.1.1. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>__.
message_thread_id of Message.reply_* (:pr:4207 closes :issue:4205)JobQueue.run_daily (:pr:4206 by @Konano <https://github.com/Konano>__)EncryptedCredentials.decrypted_secret (:pr:4199 by @marinelay <https://github.com/marinelay>__ closes :issue:4198)Released 2024-04-12
This is the technical changelog for version 21.1. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>__.
4180 closes :issue:4179 and :issue:4181, :issue:4181)ChatAdministratorRights/ChatMemberAdministrator.can_*_stories Required (API 7.1) (:pr:4192)Bot to Improve Type Hinting (:pr:4151 closes :issue:4010)Message.reply_* Reply in the Same Topic by Default (:pr:4170 by @aelkheir <https://github.com/aelkheir>__ closes :issue:4139)4161 closes :issue:4078)Update.effective_sender (:pr:4168 by @aelkheir <https://github.com/aelkheir>__ closes :issue:4085)4171, :pr:4158 by @teslaedison <https://github.com/teslaedison>__)get_sticker_set as XFAIL due to API 7.2 Update (:pr:4190)pre-commit autoupdate (:pr:4184)dependabot/fetch-metadata from 1.6.0 to 2.0.0 (:pr:4185)Released 2024-03-06
This is the technical changelog for version 21.0.1. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>__.
docs from Package (:pr:4150)Released 2024-03-06
This is the technical changelog for version 21.0. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>__.
4114 closes :issue:4099)4118)media_write_timeout to HTTPXRequest and Method ApplicationBuilder.media_write_timeout (:pr:4120 closes :issue:3864)TelegramObject.__setstate__ (:pr:4134 closes :issue:4111)Updater (:pr:4130 closes :issue:4127)4146 closes :issue:4050)4109, :issue:4116)4121 by @aelkheir <https://github.com/aelkheir>__ closes :issue:4041)pre-commit Checks More Widely (:pr:4135)test_official (:pr:4087 closes :issue:3874)4144)Updater.stop Independent of CancelledError (:pr:4126)httpx Dependency (:pr:4148)test-summary/action from 2.2 to 2.3 (:pr:4142)cachetools requirement from ~=5.3.2 to ~=5.3.3 (:pr:4141)httpx requirement from ~=0.26.0 to ~=0.27.0 (:pr:4131)Released 2024-02-08
This is the technical changelog for version 20.8. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>__.
4034 closes :issue:4033, :pr:4038 by @aelkheir <https://github.com/aelkheir>__)filters Parameter of MessageHandler (:pr:4039 by @Palaptin <https://github.com/Palaptin>__)filters.CHAT (:pr:4083 closes :issue:4062)3987 closes :issue:3979)pattern to PreCheckoutQueryHandler and filters.SuccessfulPayment (:pr:4005 by @aelkheir <https://github.com/aelkheir>__ closes :issue:3752)type to Corresponding Enum from telegram.constants (:pr:4067)Updater.start_webhook (:pr:3986 closes :issue:3978)Bot.do_api_request (:pr:4084 closes :issue:4053)AsyncContextManager as Parent Class to BaseUpdateProcessor (:pr:4001)3919)3929 closes :issue:3926)4002, :pr:4079 by @kenjitagawa <https://github.com/kenjitagawa>, :pr:4104 by @xTudoS <https://github.com/xTudoS>)4100)4035)ruff and Remove sort-all (:pr:4075)_handlers Subdirectory (:pr:4064 by @lucasmolinari <https://github.com/lucasmolinari>__ closes :issue:4060)sort-all Hook for pre-commit (:pr:4052)pre-commit Mirror for black (:pr:4051)DEFAULT_20 (:pr:3997)setup.cfg to pyproject.toml Where Possible (:pr:4088)black and ruff (:pr:4089)srvaroa/labeler from 1.8.0 to 1.10.0 (:pr:4048)tornado requirement from ~=6.3.3 to ~=6.4 (:pr:3992)actions/stale from 8 to 9 (:pr:4046)actions/setup-python from 4 to 5 (:pr:4047)pre-commit autoupdate (:pr:4101)actions/upload-artifact from 3 to 4 (:pr:4045)pre-commit autoupdate (:pr:3996)furo from 2023.9.10 to 2024.1.29 (:pr:4094)pre-commit autoupdate (:pr:4043)codecov/codecov-action from 3 to 4 (:pr:4091)EndBug/add-and-commit from 9.1.3 to 9.1.4 (:pr:4090)httpx requirement from ~=0.25.2 to ~=0.26.0 (:pr:4024)pytest from 7.4.3 to 7.4.4 (:pr:4056)srvaroa/labeler from 1.7.0 to 1.8.0 (:pr:3993)test-summary/action from 2.1 to 2.2 (:pr:4044)dessant/lock-threads from 4.0.1 to 5.0.1 (:pr:3994)Released 2023-11-27
This is the technical changelog for version 20.7. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>__.
JobQueue.scheduler_configuration and Corresponding Warnings (:pr:3913 closes :issue:3837)socket_options to HTTPXRequest (:pr:3935 closes :issue:2965)ApplicationBuilder.(get_updates_)socket_options (:pr:3943)write_timeout Handling for Media Methods (:pr:3952)filters.Mention (:pr:3941 closes :issue:3799)proxy_url to proxy and Allow httpx.{Proxy, URL} as Input (:pr:3939 closes :issue:3844)read_timeout Behavior for Bot.get_updates (:pr:3963 closes :issue:3893)BaseHandler.__repr__ for Callbacks without __qualname__ (:pr:3934)3962)Bot (:pr:3942)__aenter__ and __aexit__ Methods (:pr:3907 closes :issue:3886)Bot Methods (:pr:3965)3970)pytest-xdist from 3.3.1 to 3.4.0 (:pr:3975)pre-commit autoupdate (:pr:3967)httpx requirement from ~=0.25.1 to ~=0.25.2 (:pr:3983)pytest-xdist from 3.4.0 to 3.5.0 (:pr:3982)httpx requirement from ~=0.25.0 to ~=0.25.1 (:pr:3961)srvaroa/labeler from 1.6.1 to 1.7.0 (:pr:3958)cachetools requirement from ~=5.3.1 to ~=5.3.2 (:pr:3954)pytest from 7.4.2 to 7.4.3 (:pr:3953)Released 2023-10-03
This is the technical changelog for version 20.6. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>__.
3853 (API 6.8) (:pr:3873)3898)WriteAccessAllowed (:pr:3911 closes :issue:3909)__repr__ Methods Added in :pr:3826 closes :issue:3770 to Sphinx Documentation (:pr:3901 closes :issue:3889)3826 closes :issue:3770)3915)3910)3868)3912)file_size Tests (:pr:3906)3888)--preview Flag of black (:pr:3882)3883)Defaults.__ne__ (:pr:3884)pre-commit autoupdate (:pr:3876)pre-commit Dependencies (:pr:3916)actions/checkout from 3 to 4 (:pr:3914)httpx requirement from ~=0.24.1 to ~=0.25.0 (:pr:3891)furo from 2023.8.19 to 2023.9.10 (:pr:3890)sphinx from 7.2.5 to 7.2.6 (:pr:3892)tornado requirement from ~=6.2 to ~=6.3.3 (:pr:3675)pytest from 7.4.0 to 7.4.2 (:pr:3881)Released 2023-09-03
This is the technical changelog for version 20.5. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>__.
3853)3858)3823 closes :issue:3821)has_args Parameter to CommandHandler (:pr:3854 by @thatguylah <https://github.com/thatguylah>__ closes :issue:3798)Application.stop_running() and Improve Marking Updates as Read on Updater.stop() (:pr:3804)WebhookInfo (:pr:3871)Exception.__cause__ on NetworkError (:pr:3792 closes :issue:3778)3847)3846)3803, :pr:3797, :pr:3816 by @trim21 <https://github.com/trim21>, :pr:3829 by @aelkheir <https://github.com/aelkheir>)customwebhookbot.py with Different Frameworks (:pr:3820 closes :issue:3717)pre-commit autoupdate (:pr:3824)srvaroa/labeler from 1.6.0 to 1.6.1 (:pr:3870)sphinx from 7.0.1 to 7.1.1 (:pr:3818)sphinx from 7.2.3 to 7.2.5 (:pr:3869)furo from 2023.5.20 to 2023.7.26 (:pr:3817)apscheduler requirement from ~=3.10.3 to ~=3.10.4 (:pr:3862)sphinx from 7.2.2 to 7.2.3 (:pr:3861)pytest-asyncio from 0.21.0 to 0.21.1 (:pr:3801)sphinx-paramlinks from 0.5.4 to 0.6.0 (:pr:3840)apscheduler requirement from ~=3.10.1 to ~=3.10.3 (:pr:3851)furo from 2023.7.26 to 2023.8.19 (:pr:3850)sphinx from 7.1.2 to 7.2.2 (:pr:3852)sphinx from 7.1.1 to 7.1.2 (:pr:3827)Released 2023-07-09
This is the technical changelog for version 20.4. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>__.
3728, :pr:3742 by @Trifase <https://github.com/Trifase>, :pr:3749 by @thefunkycat <https://github.com/thefunkycat>, :pr:3740 closes :issue:3732, :pr:3754 closes :issue:3731, :pr:3753, :pr:3764, :pr:3762, :pr:3759 closes :issue:3733)APScheduler into JobQueue More Explicit (:pr:3695)BaseUpdateProcessor for Customized Concurrent Handling of Updates (:pr:3654 closes :issue:3509)timeout Parameter of Bot.get_updates (:pr:3709 by @revolter <https://github.com/revolter>__)3692 by @MiguelX413 <https://github.com/MiguelX413>__)KeyboardButton.__eq__ (:pr:3768)allowed_updates in Examples (:pr:3741 by @Trifase <https://github.com/Trifase>__ closes :issue:3726)furo and sphinx (:pr:3719)3698, :pr:3708 by @revolter <https://github.com/revolter>__, :pr:3767)3780)3712)httpx Logging Level to Warning in Examples (:pr:3746 closes :issue:3743)pre-commit.ci Configuration (:pr:3697)3751)3777)3716)ruff Rules (:pr:3763)_handler.py to _basehandler.py (:pr:3761)pre-commit-ci PRs (:pr:3713)pytest Integration into GitHub Actions (:pr:3776)3739)cachetools requirement from ~=5.3.0 to ~=5.3.1 (:pr:3738)aiolimiter requirement from ~=1.0.0 to ~=1.1.0 (:pr:3707)pre-commit autoupdate (:pr:3791)sphinxcontrib-mermaid from 0.8.1 to 0.9.2 (:pr:3737)pytest-xdist from 3.2.1 to 3.3.0 (:pr:3705)srvaroa/labeler from 1.5.0 to 1.6.0 (:pr:3786)dependabot/fetch-metadata from 1.5.1 to 1.6.0 (:pr:3787)dessant/lock-threads from 4.0.0 to 4.0.1 (:pr:3785)pytest from 7.3.2 to 7.4.0 (:pr:3774)httpx requirement from ~=0.24.0 to ~=0.24.1 (:pr:3715)pytest-xdist from 3.3.0 to 3.3.1 (:pr:3714)pytest from 7.3.1 to 7.3.2 (:pr:3758)pre-commit autoupdate (:pr:3747)Released 2023-05-07
This is the technical changelog for version 20.3. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
3673)3622)Application.mark_data_for_update_persistence (:pr:3607)Message.link Point to Thread View Where Possible (:pr:3640)datetime Objects According to Defaults.tzinfo (:pr:3632)ruff (:pr:3594)sys.maxunicode (:pr:3630)RequestParameter (:pr:3634)3631)3623)BasePersistence.parse_json_payload (:pr:3668)3674)test_delete_sticker_set (:pr:3685)Application.start (:pr:3657)3676)3628, :pr:3636, :pr:3694)actions/stale from 7 to 8 (:pr:3644)furo from 2023.3.23 to 2023.3.27 (:pr:3643)pre-commit autoupdate (:pr:3646, :pr:3688)codecov Package from CI (:pr:3664)sphinx-copybutton from 0.5.1 to 0.5.2 (:pr:3662)httpx requirement from ~=0.23.3 to ~=0.24.0 (:pr:3660)pytest from 7.2.2 to 7.3.1 (:pr:3661)Released 2023-03-25
This is the technical changelog for version 20.2. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
3584)3576)3565, :pr:3600)was_called_by (:pr:3552)3553)Application.create_task (:pr:3543)PRs from Forks (:pr:3551)3426)pytest-asyncio from 0.20.3 to 0.21.0 (:pr:3624)furo from 2022.12.7 to 2023.3.23 (:pr:3625)pytest-xdist from 3.2.0 to 3.2.1 (:pr:3606)pre-commit autoupdate (:pr:3577)apscheduler requirement from ~=3.10.0 to ~=3.10.1 (:pr:3572)pytest from 7.2.1 to 7.2.2 (:pr:3573)pytest-xdist from 3.1.0 to 3.2.0 (:pr:3550)sphinxcontrib-mermaid from 0.7.1 to 0.8 (:pr:3549)Released 2023-02-09
This is the technical changelog for version 20.1. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
3530)Application(Builder).post_stop (:pr:3466)Chat.effective_name Convenience Property (:pr:3485)3506)chatmemberbot Example (:pr:3500)3501, :pr:3529, :pr:3523)3535)3464, :pr:3483, :pr:3484, :pr:3497, :pr:3512, :pr:3515, :pr:3498)3459)3460)3474)GitHub Actions (:pr:3469)GitHub Actions Artifacts (:pr:3468)ruff to pre-commit Hooks (:pr:3488)days Parameter of JobQueue.run_daily (:pr:3503)NetworkError (:pr:3505)3510)pytest from 7.2.0 to 7.2.1 (:pr:3513)check_keyboard_type (:pr:3514)3508)3531)3547)actions/stale from 6 to 7 (:pr:3461)dessant/lock-threads from 3.0.0 to 4.0.0 (:pr:3462)pre-commit autoupdate (:pr:3470)httpx requirement from ~=0.23.1 to ~=0.23.3 (:pr:3489)cachetools requirement from ~=5.2.0 to ~=5.2.1 (:pr:3502)ruff and Bump to v0.0.222 (:pr:3507)cachetools requirement from ~=5.2.1 to ~=5.3.0 (:pr:3520)isort to 5.12.0 (:pr:3525)apscheduler requirement from ~=3.9.1 to ~=3.10.0 (:pr:3532)pre-commit autoupdate (:pr:3537)cryptography requirement to >=39.0.1 to address Vulnerability (:pr:3539)Released 2023-01-01
This is the technical changelog for version 20.0. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
3449)3428, :pr:3423, :pr:3429, :pr:3441, :pr:3404, :pr:3443)Sequence Input for Bot Methods (:pr:3412)3456)3453)3444)Bot.__deepcopy__ to Raise TypeError (:pr:3446)Bot.get_webhook_info (:pr:3442)3436)Job.__lt__ (:pr:3432)sphinx to 5.3.0 to Fix Search (:pr:3457)sphinx from 5.3.0 to 6.0.0 (:pr:3450)Released 2022-12-15
This is the technical changelog for version 20.0b0. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
TelegramObject Immutable (:pr:3249)Defaults (:pr:3419)3393)Bot Methods (:pr:3396)Bot Methods (:pr:3385)3386, :pr:3395, :pr:3398, :pr:3403)pytest-xdist from 3.0.2 to 3.1.0 (:pr:3415)pytest-asyncio from 0.20.2 to 0.20.3 (:pr:3417)pre-commit autoupdate (:pr:3409)Released 2022-11-24
This is the technical changelog for version 20.0a6. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
callback_data if ExtBot.callback_data_cache is Present (:pr:3384)TelegramObjects Pickle Behavior (:pr:3382)File.download_* Methods (:pr:3380)Chat.create_forum_topic (:pr:3381)Released 2022-11-22
This is the technical changelog for version 20.0a5. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
3346, :pr:3343, :pr:3342, :pr:3360)local_mode Setting (:pr:3154)3267)File.download Into File.download_to_drive And File.download_to_memory (:pr:3223)Bot (:pr:3247)chat_id and username Parameters to ChatJoinRequestHandler (:pr:3261)TelegramObject.api_kwargs (:pr:3233)3296)recursive Parameter to TelegramObject.to_dict() (:pr:3276)TelegramObject (:pr:3234)Chat.mention_{html, markdown, markdown_v2} (:pr:3308)constants.MessageLimit.DEEP_LINK_LENGTH (:pr:3315)caption, parse_mode and caption_entities to Bot.send_media_group (:pr:3295)3351)CallbackQueryHandler Not Handling Non-String Data Correctly With Regex Patterns (:pr:3252)Bot.answer_web_app_query (:pr:3362)3361)TelegramObject (:pr:3319)3306)3218)3217, :pr:3292, :pr:3303, :pr:3312, :pr:3314)3214, :pr:3271, :pr:3289, :pr:3326, :pr:3370, :pr:3376, :pr:3366)ConversationHandler States (:pr:3242)GitHub Actions (:pr:3243)3246)Job.job a Property and Make Jobs Hashable (:pr:3250)JobQueue Tests on Windows Again (:pr:3280)CallbackDataCache (:pr:3266)Message.effective_attachment (:pr:3294)3283)3313)ext.Defaults (:pr:3311)MessageAttachmentType (:pr:3335)3347)ChatMemberUpdated.difference (:pr:3352)pytest Marker (:pr:3354)DeepSource Issues (:pr:3357)TelegramObject.to_dict (:pr:3353)3365)ChatDescriptionLimit Enum Into ChatLimit (:pr:3377)pytest from 7.1.2 to 7.1.3 (:pr:3228)pre-commit Updates (:pr:3221)sphinx from 5.1.1 to 5.2.3 (:pr:3269)furo from 2022.6.21 to 2022.9.29 (:pr:3268)actions/stale from 5 to 6 (:pr:3277)pre-commit autoupdate (:pr:3282)sphinx from 5.2.3 to 5.3.0 (:pr:3300)pytest-asyncio from 0.19.0 to 0.20.1 (:pr:3299)pytest from 7.1.3 to 7.2.0 (:pr:3318)pytest-xdist from 2.5.0 to 3.0.2 (:pr:3317)pre-commit autoupdate (:pr:3325)pytest-asyncio from 0.20.1 to 0.20.2 (:pr:3359)httpx requirement from ~=0.23.0 to ~=0.23.1 (:pr:3373)Released 2022-08-27
This is the technical changelog for version 20.0a4. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
setup.py Regarding Optional Dependencies (:pr:3209)Released 2022-08-27
This is the technical changelog for version 20.0a3. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
3195)3148)chat/user_data Available in Error Handler for Errors in Jobs (:pr:3152)Application.post_shutdown (:pr:3126)helpers.mention_markdown for Markdown V1 and Improve Related Unit Tests (:pr:3155)api_kwargs Parameter to Bot.log_out and Improve Related Unit Tests (:pr:3147)Bot.delete_my_commands a Coroutine Function (:pr:3136)ConversationHandler.check_update not respecting per_user (:pr:3128)3168)3167)Bot.send_chat_action (:pr:3151)pre-commit Dependencies from requirements-dev.txt (:pr:3120)concurrent_updates and connection_pool_size (:pr:3127)3139, :pr:3153, :pr:3135)3202)sphinx from 5.0.2 to 5.1.1 (:pr:3177)pre-commit Dependencies (:pr:3085)pytest-asyncio from 0.18.3 to 0.19.0 (:pr:3158)tornado requirement from ~=6.1 to ~=6.2 (:pr:3149)black from 22.3.0 to 22.6.0 (:pr:3132)actions/setup-python from 3 to 4 (:pr:3131)Released 2022-06-27
This is the technical changelog for version 20.0a2. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
3112)Chat (:pr:3115)3090)3103, :pr:3121, :pr:3098)3119)pyupgrade from 2.32.1 to 2.34.0 (:pr:3096)furo from 2022.6.4 to 2022.6.4.1 (:pr:3095)mypy from 0.960 to 0.961 (:pr:3093)Released 2022-06-09
This is the technical changelog for version 20.0a1. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
ujson and instead BaseRequest.parse_json_payload (:pr:3037, :pr:3072)InputFile.is_image (:pr:3053)__init__ s (:pr:3056)3057){Command, Prefix}Handler And Make Attributes Immutable (:pr:3045)JobQueue.run_daily With cron (:pr:3046)3035)3033)3030)CallbackContext and Move Default Type Alias to ContextTypes.DEFAULT_TYPE (:pr:3017, :pr:3023)Job.context to Job.data (:pr:3028)Handler to BaseHandler (:pr:3019)Application.post_init (:pr:3078)chat/user_id to CallbackContext And Example On Custom Webhook Setups (:pr:3059)Message.id (:pr:3077)WebApp (:pr:3052)telegram.bot_api_version to telegram.__bot_api_version__ (:pr:3030)ConversationHandler (:pr:3068)escape_markdown (:pr:3055)httpx requirement from ~=0.22.0 to ~=0.23.0 (:pr:3069)cachetools requirement from ~=5.0.0 to ~=5.2.0 (:pr:3058, :pr:3080)3089)3010, :pr:3007, :pr:3012, :pr:3067, :pr:3081, :pr:3082)3026)3070, :pr:3032,:pr:2998, :pr:2999)3065){Command, Prefix}Handler And Make Attributes Immutable (:pr:3045)isort and Update pre-commit.ci Configuration (:pr:3049)pre-commit Settings for isort (:pr:3043)3036)Collection Instead of List and Tuple (:pr:3025)3024)2978)Application.run_* on Python 3.7 (:pr:3009)git blame (:pr:3003)3002)Released 2022-05-06
This is the technical changelog for version 20.0a0. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
2604)CallbackContext API
(:pr:2617)__dict__ from __slots__ and drop Python 3.6
(:pr:2619,
:pr:2636)TelegramDecryptionError to
telegram.error.PassportDecryptionError
(:pr:2621)BasePersistence Methods Abstract
(:pr:2624)day_is_strict argument of JobQueue.run_monthly
(:pr:2634
by iota-008 <https://github.com/iota-008>__)Defaults to telegram.ext
(:pr:2648)2644,
:pr:2740,
:pr:2745)2759,
:pr:2922)asyncio and Refactor PTBs Architecture
(:pr:2731)Job.__getattr__
(:pr:2832)telegram.ReplyMarkup
(:pr:2870)Bots: Refactor Automatic Replacement and
Integration with TelegramObject
(:pr:2893)2646)Filters.update.edited
(:pr:2705
by PhilippFr <https://github.com/PhilippFr>__)Enums for telegram.constants
(:pr:2708)private_key
(:pr:2724)Jobs with chat/user_id
(:pr:2731)ChatInviteLinks
(:pr:2782)Dispatcher.add_handlers
(:pr:2823)CommandHandler.__init__
(:pr:2837)Defaults.protect_content
(:pr:2840)Dispatcher.migrate_chat_data
(:pr:2848
by DonalDuck004 <https://github.com/DonalDuck004>__)drop_chat/user_data to Dispatcher and Persistence
(:pr:2852)ChatPermissions.{all, no}_permissions (:pr:2948)2956)2968)CallbackContext
(:pr:2587
by revolter <https://github.com/revolter>__)test_official
(:pr:2643)Dispatcher.dispatch_error
(:pr:2660)InlineQuery.answer Raise ValueError
(:pr:2675)2686)TelegramObject.set/get_bot
(:pr:2712
by zpavloudis <https://github.com/zpavloudis>__)TelegramObject
(:pr:2719
by SimonDamberg <https://github.com/SimonDamberg>__)ChatMember
(:pr:2817)BasePersistence.get_*_data
(:pr:2873)ChatMemberUpdated.difference
(:pr:2947)2958){Inline, Reply}KeyboardMarkup
(:pr:2657)2662)2671)2687
by kencx <https://github.com/kencx>__)pathlib Module
(:pr:2688
by eldbud <https://github.com/eldbud>__)InputMedia* and Some File-Like Classes
(:pr:2717
by eldbud <https://github.com/eldbud>__)2749)ConversationHandler
(:pr:2755,
:pr:2784)__all__ Consistently
(:pr:2805)pytest Marker to Ease Development
(:pr:2628)2692)2695)pylint Instead of Codes
(:pr:2700
by Piraty <https://github.com/Piraty>__)2727
by eldbud <https://github.com/eldbud>__)2748)2783)pre-commit Settings & Improve a Test
(:pr:2796)2843)2865)2925)2972)2984)Bot.get_file Behavior
(:pr:2995)2597)2612)2693,
:pr:2691
by joesinghh <https://github.com/joesinghh>,
:pr:2739
by eldbud <https://github.com/eldbud>)2856,
:pr:2798,
:pr:2854,
:pr:2841)2822)git.io Links
(:pr:2872
by murugu-21 <https://github.com/murugu-21>__)2969)Released 2022-02-02
This is the technical changelog for version 13.11. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
Major Changes:
2881)Released 2022-01-03
This is the technical changelog for version 13.10. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
Major Changes:
2835)Minor Changes & Doc fixes:
2836)BotCommand (:pr:2820)Released 2021-12-11
This is the technical changelog for version 13.9. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
Major Changes:
2809)Minor Changes
2775)Released 2021-11-08
This is the technical changelog for version 13.8.1. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
Doc fixes:
ChatJoinRequest(Handler) to Docs (:pr:2771)Released 2021-11-08
This is the technical changelog for version 13.8. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
Major Changes:
2767)Minor changes, CI improvements, Doc fixes and Type hinting:
2689)camelCase Functions in ExtBot (:pr:2659)Bot.copy_message (:pr:2651)2583)BasePersistence.insert/replace_bot for Objects with __dict__ not in __slots__ (:pr:2603)Released 2021-07-01
This is the technical changelog for version 13.7. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>_.
Major Changes:
2572)Bug Fixes:
BasePersistence.insert/replace_bot for Objects with __dict__ in their slots (:pr:2561)Defaults and ExtBot (:pr:2553)Minor changes, CI improvements, Doc fixes and Type hinting:
2552)2551)__slots__ (:pr:2574)2575)2571)BasePersistence.replace/insert_bot (:pr:2564)pass_args from Deeplinking Example (:pr:2550)Released 2021-06-06
New Features:
callback_data (:pr:1844)ContextTypes & BasePersistence.refresh_user/chat/bot_data (:pr:2262)Filters.attachment (:pr:2528)pattern Argument to ChosenInlineResultHandler (:pr:2517)Major Changes:
slots (:pr:2345)Minor changes, CI improvements, Doc fixes and Type hinting:
2495, :pr:2510)max_connections Parameter to Updater.start_webhook (:pr:2547)Promise.done_callback (:pr:2544)2536, :pr:2454)CallbackQueryHandler (:pr:2520)2522, :pr:2537, :pr:2541)send_phone_number_to_provider argument for Bot.send_invoice (:pr:2527)BasePersistence.replace/insert_bot (:pr:2523)2067 (:pr:2494)Released 2021-04-30
Major Changes:
Full support of Bot API 5.2 (:pr:2489).
.. note::
The start_parameter argument of Bot.send_invoice and the corresponding shortcuts is now optional, so the order of
parameters had to be changed. Make sure to update your method calls accordingly.
Update ChatActions, Deprecating ChatAction.RECORD_AUDIO and ChatAction.UPLOAD_AUDIO (:pr:2460)
New Features:
ChatMemberUpdated (:pr:2490)Filters.forwarded_from (:pr:2446)Minor changes, CI improvements, Doc fixes and Type hinting:
ConversationHandler (:pr:2417)2480)2437)2456)UserWarnings (:pr:2464)2450)2451)2441, :pr:2448)Released 2021-03-14
Hot fix release:
setup.py (:pr:2431)Released 2021-03-14
Major Changes:
2424)Minor changes, CI improvements, doc fixes and type hinting:
Updater.set_webhook (:pr:2419)2404)2425)pre-commit Settings (:pr:2415)urllib3 (:pr:2427)2409)Released 2021-02-19
Major Changes:
cryptography Dependency Optional & Refactor Some Tests (:pr:2386, :pr:2370)MessageQueue (:pr:2393)Bug Fixes:
Defaults Integration (:pr:2363)telegram.SecureValue to init and Docs (:pr:2398)Minor changes:
2359)Released 2021-02-02
Major Changes:
python-telegram-bot-raw (:pr:2324)2240)New Features:
Message (:pr:2330)Bot (:pr:2320)run_async Parameter to ConversationHandler (:pr:2292)Chat (:pr:2291)MAX_ANSWER_CALLBACK_QUERY_TEXT_LENGTH (:pr:2282)2249)2233)Bug Fixes:
Message Properties (:pr:2312)Dispatcher.update_persistence (:pr:2285)quote kwarg to Message.reply_copy (:pr:2232)ConversationHandler: Docs & edited_channel_post behavior (:pr:2339)Minor changes, CI improvements, doc fixes and type hinting:
2253, :pr:2225)typing.Any (:pr:2321)2335)2301)2299)2323)2289, :pr:2287)2256)2266)2252)2243)Released 2020-11-29
Major Changes:
2181, :pr:2186, :pr:2190, :pr:2189, :pr:2183, :pr:2184, :pr:2188, :pr:2185, :pr:2192, :pr:2196, :pr:2193, :pr:2223, :pr:2199, :pr:2187, :pr:2147, :pr:2205)New Features:
Defaults.run_async (:pr:2210)CallbackQuery Shortcuts (:pr:2172)Filters.name a Property (:pr:2179)Filters.document.file_extension (:pr:2169)Filters.caption_regex (:pr:2163)Filters.chat_type (:pr:2128)2202)Bug Fixes:
BasePersistence.insert/replace_bot (:pr:2151)replace/insert_bot (:pr:2218)Minor changes, CI improvements, doc fixes and type hinting:
2204, :pr:2118, :pr:2167, :pr:2136)2201, :pr:2161)2222)2182)2168)2131)2122, :pr:2159, :pr:2158)2142)timerbot.py to v13.0 (:pr:2149)2137)2132)GitHub Action (:pr:2127)2121)Released 2020-10-07
For a detailed guide on how to migrate from v12 to v13, see this wiki page <https://github.com/python-telegram-bot/python-telegram-bot/wiki/Transition-guide-to-Version-13.0>_.
Major Changes:
use_context=True by default (:pr:2050)2032)Message.default_quote (:pr:1965)1994)JobQueue (:pr:1981)1924)Dispatcher.run_async, deprecating the @run_async decorator (:pr:2051)New Features:
1920)answer_inline_query (:pr:2072)Defaults.tzinfo (:pr:2042)1724)Filters.via_bot (:pr:2009)2043)DispatcherHandlerStop in ConversationHandler (:pr:2059)2106)Minor changes, CI improvements, doc fixes or bug fixes:
2067)send_media_group (:pr:2093)MessageHandler filter for Filters.update first (:pr:2085)PicklePersistence.flush() with only bot_data (:pr:2017)Updater.start_polling/webhook (:pr:2002)2005, :pr:2008, :pr:2089, :pr:2094, :pr:2090)2018, :pr:2061)pollbot.py example (:pr:2047)2027)echobot examples (:pr:2025)2048, :pr:2052, :pr:2049, :pr:2053)Released 2020-06-22
Major Changes:
1715)1980)Filters.user and Filters.chat can now be updated (:pr:1757)Minor changes, CI improvements, doc fixes or bug fixes:
1937)NullHandlers (:pr:1913)1943, :pr:1995, :pr:1983, :pr:1997)1940, :pr:1962)User.send_poll() shortcut (:pr:1968)TelegramObject.to_dict() (:pr:1989)2000)Released 2020-05-02
Major Changes:
Dice object now has a second positional argument emoji. This is relevant, if you instantiate Dice objects manually. (:pr:1917)tzinfo argument to helpers.from_timestamp. It now returns an timezone aware object. This is relevant for Message.{date,forward_date,edit_date}, Poll.close_date and ChatMember.until_date (:pr:1621)New Features:
run_monthly for the JobQueue (:pr:1705)Job.next_t now gives the datetime of the jobs next execution (:pr:1685)Minor changes, CI improvements, doc fixes or bug fixes:
1919, :pr:1931)@abstractmethod instead of raising NotImplementedError for Handler, BasePersistence and BaseFilter (:pr:1905)1914, :pr:1902, :pr:1910)Released 2020-04-11
Bug fixes:
reply_markup in media messages (:pr:1889)Released 2020-04-10
Major Changes:
Bot.create_new_sticker_set and Bot.add_sticker_to_set, the order of the parameters had be changed, as the png_sticker parameter is now optional. (:pr:1858)Minor changes, CI improvements or bug fixes:
swtich_inline_query(_current_chat) with empty string (:pr:1635)1854, :pr:1874, :pr:1884)1880)1882)CallbackContext to TIMEOUT handlers of ConversationHandler (:pr:1826)1827)1887)Released 2020-03-30
Minor changes, doc fixes or bug fixes:
PollHandler and PollAnswerHandler (:pr:1853)Filters docs (:pr:1855)1835)ConversationHandler attributes immutable (:pr:1756)PrefixHandler attributes command and prefix editable (:pr:1636)tzinfo for Job (:pr:1696)Released 2020-03-29
New Features:
Bot.link gives the t.me link of the bot (:pr:1770)Major Changes:
1508, :pr:1723)Minor changes, CI improvements or bug fixes:
1783, :pr:1791)1787)1792)1808, :pr:1848)1614, :pr:1824)1820, :pr:1829, :pr:1840)1778, :pr:1818)edit_message_media (:pr:1779)edit_message_text shortcut (:pr:1721)1775)Released 2020-02-10
Bug Fixes
1763)1760)Released 2020-02-08
This is a quick release for :pr:1744 which was accidently left out of v12.4.0 though mentioned in the
release notes.
Released 2020-02-08
New features:
wiki page for the new defaults_. (:pr:1490)CallbackContext.bot_data to access it in every callback. Also persists. (:pr:1325)Filters.poll allows only messages containing a poll (:pr:1673)Major changes:
Filters.text now accepts messages that start with a slash, because CommandHandler checks for MessageEntity.BOT_COMMAND since v12. This might lead to your MessageHandlers receiving more updates than before (:pr:1680).Filters.command new checks for MessageEntity.BOT_COMMAND instead of just a leading slash. Also by Filters.command(False) you can now filters for messages containing a command anywhere in the text (:pr:1744).Minor changes, CI improvements or bug fixes:
disptacher argument to Updater to allow passing a customized Dispatcher (:pr:1484)Filters (:pr:1632)1624, :pr:1647, :pr:1669, :pr:1703, :pr:1718, :pr:1734, :pr:1740, :pr:1642, :pr:1739, :pr:1746)1716, :pr:1731, :pr:1738, :pr:1748, :pr:1749, :pr:1750, :pr:1752)encode_conversations_to_json (:pr:1661)Dispatcher.job_queue (:pr:1698)CallbackContext (:pr:1684)None check in JobQueue._put() (:pr:1707)JobQueue (:pr:1714)Message.link creation for private groups (:pr:1741)--with-upstream-urllib3 to setup.py to allow using non-vendored version (:pr:1725)ConversationHandlers (:pr:1679)1623)file_path (:pr:1591)1758).. _wiki page for the new defaults: https://github.com/python-telegram-bot/python-telegram-bot/wiki/Adding-defaults-to-your-bot
Released 2020-01-11
New features:
Filters.caption allows only messages with caption (:pr:1631).Filters.text and Filters.caption. Especially useful in combination with ReplyKeyboardMarkup. (:pr:1631).Major changes:
1506).Minor changes, CI improvements or bug fixes:
1558, :pr:1569, :pr:1579, :pr:1572, :pr:1566, :pr:1577, :pr:1656).ConversationHandler (:pr:1533).MAX_PHOTOSIZE_UPLOAD constant (:pr:1560).Message.forward() (:pr:1574).1555, :pr:1556, :pr:1605, :pr:1606, :pr:1607, :pr:1612, :pr:1615, :pr:1645).1618).1600)Message.link (:pr:1619).ConversationHandler.TIMEOUT handlers (:pr:1653).Released 2019-10-14
New features:
1512).Minor changes, CI improvments or bug fixes:
1540).1537).1525).test_commandhandler.py (:pr:1408).1543).1544).1546).Released 2019-09-18
Hot fix release
Fixed regression in the vendored urllib3 (:pr:1517).
Released 2019-09-13
Major changes:
1464, :pr:1510)get_file method to Animation & ChatPhoto. Add, get_small_file & get_big_file
methods to ChatPhoto (:pr:1489)1049)Minor changes and/or bug fixes:
1500, :pr:1499)1502)Released 2019-08-29
Well... This felt like decades. But here we are with a new release.
Expect minor releases soon (mainly complete Bot API 4.4 support)
Major and/or breaking changes:
1485)1485)See the wiki page at https://github.com/python-telegram-bot/python-telegram-bot/wiki/Transition-guide-to-Version-12.0 for a detailed guide on how to migrate from version 11 to version 12.
1100)pass_ in handlers is deprecated.use_context=True on Updater or Dispatcher and change callback from (bot, update, others...) to (update, context).Dispatcher.add_error_handler and JobQueue jobs (change (bot, job) to (context) here).JobQueue.__init__ is deprecated. Use JobQueue.set_dispatcher with a dispatcher instead.CallbackContext for a entire update. This means that if an update is handled by multiple handlers (by using the group argument), you can add custom arguments to the CallbackContext in a lower group handler and use it in higher group handler. NOTE: Never use with @run_async, see docs for more info. (:pr:1283)1017)1114)1221)run_async_timeout and timed_out_behavior arguments (:pr:1344)WAITING constant and behavior from states (:pr:1344)1319)1343)1270)1314)left_chat_member to Message.MESSAGE_TYPES (:pr:1336)1330)1306)1154)1262)1247, :pr:1239)1228)1214)1191)1211)1213)1206)1348, :pr:1397, :pr:1436)1350)1383)1428)1437)1465)1358)1355)1367)1375)1463)1462)Released 2018-09-01
Fixes and updates for Telegram Passport: (:pr:1198)
Released 2018-08-29
Fully support Bot API version 4.0! (also some bugfixes :))
Telegram Passport (:pr:1174):
our telegram passport wiki page_ for more infocryptography.Inputfile rework (:pr:1184):
Other Bot API 4.0 changes:
1170)1166)1179)
$USD and $GBP, but it seems telegram doesn't currently send them to bots.1172)Non Bot API 4.0 changes:
1147)1158)1126)1092)1112).. _our telegram passport wiki page: https://github.com/python-telegram-bot/python-telegram-bot/wiki/Telegram-Passport
Released 2018-05-02
Fixes changing previous behaviour:
1085)1088)Fixes:
1068)1086)1079)1099)1061, :pr:1078, :pr:1081, :pr:1096)Released 2018-04-17
Important fix:
1076)New features:
1028)1046)1067)Fixes:
1042)1050)1063)1074)1071)Released 2018-03-05
Fixes:
1032)912)Released 2018-03-02
Non backward compatabile changes and changed defaults
1012)1012)1012)1018)New Features
1006)949)send_phone_number_to_provider and send_email_to_provider arguments to send_invoice (PR :pr:986)827)994)826)963)963)963)1011)1013)1019)1019)895)Changes
953)951)977)985)959)1007)834)1020)942, PR :pr:956, PR :pr:962, PR :pr:980, PR :pr:983)Released 2017-12-08
Breaking changes (possibly)
930)New Features
920)Changes
887)694)870)Released 2017-10-15
873).Released 2017-10-14
New features
865).Changes
869).822).Released 2017-09-01
New features
806).see docs_).777).766).Non backward compatible changes
776).806).789).Changes
754).761).764).771).793).810).788).Released 2017-07-28
Released 2017-07-25
Message text properties (PR #689).MessageQueue's decorator (PR #705).telegram.Emoji.Botan import from utils (Botan is still available through contrib).ReplyKeyboardHide.edit_message argument of bot.set_game_score.2017-06-18
Released 6.1.0
2017-05-29
Released 6.0.3
2017-05-29
Released 6.0.2
urllib3 by renaming vendored urllib3 to ptb_urllib32017-05-19
Released 6.0.1
User.language_codeMessage.text_html and Message.text_markdown for messages with emoji2017-05-19
Released 6.0.0
deleteMessage API methodJobQueue - :pr:484459urllib3 to address issues with timeouts
None by default, instead of empty stringstext_markdown and text_html properties to Message - :pr:507518CommandHandler - :pr:536552Filters.group and Filters.privateurllib3.contrib package - :pr:5836042017-04-17
Released 5.3.1
2016-12-11
Released 5.3
JobQueue now supports datetime.timedelta in addition to secondsJobQueue now supports running jobs only on certain daysFilters.reply filterMessage.edit_reply_markup2016-10-25
Released 5.2
Message.edit_* methodsMessageHandler can now be combined using bitwise operators (& and |)2016-09-24
Released 5.1
Drop Python 2.6 support
Deprecate telegram.Emoji
Use ujson if available
Add instance methods to Message, Chat, User, InlineQuery and CallbackQuery
RegEx filtering for CallbackQueryHandler and InlineQueryHandler
New MessageHandler filters: forwarded and entity
Add Message.get_entity to correctly handle UTF-16 codepoints and MessageEntity offsets
Fix bug in ConversationHandler when first handler ends the conversation
Allow multiple Dispatcher instances
Add ChatMigrated Exception
Properly split and handle arguments in CommandHandler
2016-07-15
Released 5.0
JobQueueConversationHandlertelegram.constants - :pr:3422016-07-12
Released 4.3.4
urllib3 when proxy requires auth2016-07-08
Released 4.3.3
urllib32016-07-04
Released 4.3.2
timeout parameter in all API methods2016-06-29
Released 4.3.1
urllib3>=1.102016-06-28
Released 4.3
urllib3.PoolManager for connection re-userun_async decorator to re-use threadsurllib3 and certifi2016-06-10
Released 4.2.1
CallbackQuery.to_dict() bug (thanks to @jlmadurga)editMessageText exception when receiving a CallbackQuery2016-05-28
Released 4.2
botan module to telegram.contribBadRequest2016-05-22
Released 4.1.2
MessageEntity decoding with Bot API 2.1 changes2016-05-16
Released 4.1.1
Dispatcher2016-05-15
Released 4.1
start_polling with clean=Truetelegram.Bot.send_message is the same as telegram.Bot.sendMessage2016-05-01
Released 4.0.3
location to InlineQuery2016-04-29
Released 4.0.2
KeyboardReplyMarkup now accepts str again2016-04-27
Released 4.0.1
DispatcherTransition Guide to 4.0 <https://github.com/python-telegram-bot/python-telegram-bot/wiki/Transition-guide-to-Version-4.0>_MessageHandler (upper/lower cases)int only, and ordered2016-04-22
Released 4.0rc1
DispatcherTransistion Guide to 4.0 <https://github.com/python-telegram-bot/python-telegram-bot/wiki/Transition-guide-to-Version-4.0>_2016-03-22
Released 3.4
Updater, Dispatcher and JobQueue to new telegram.ext submodule (thanks to @rahiel)disable_notification parameter (thanks to @aidarbiktimirov)BufferedReader2016-02-28
Released 3.3
Unauthorized, InvalidToken, NetworkError and TimedOutVery special thanks to Noam Meltzer (@tsnoam) for all of his work!
2016-01-09
Released 3.3b1
2016-01-05
Released 3.2.0
JobQueue (original author: @franciscod)TelegramError (Special thanks to @tsnoam)Updater and Dispatcher start and stop methods2015-12-29
Released 3.1.2
2015-12-21
Released 3.1.1
groups and groupdict as additional arguments for regex-based handlers2015-12-16
Released 3.1.0
chat-field in Message is now of type Chat. (API update Oct 8 2015)Message now contains the optional fields supergroup_chat_created, migrate_to_chat_id, migrate_from_chat_id and channel_chat_created. (API update Nov 2015)2015-12-08
Released 3.0.0
Updater and Dispatcher classes2015-11-11
Released 2.9.2
2015-11-10
Released 2.9.1
network_delay to Bot.getUpdates for slow connections2015-11-10
Released 2.9
bytes_to_native_str from future 3rd party libuser_from optional to work with channelsSpecial thanks to @jh0ker for all hard work
2015-10-08
Released 2.8.7
GroupChat class2015-10-08
Released 2.8.6
User and GroupChat classes (pre-release Telegram feature)2015-09-24
Released 2.8.5
Audio and Document for unicode fields2015-09-20
Released 2.8.4
getFile and File.download is now fully supported2015-09-10
Released 2.8.3
Bot._requestURL to its own class (telegram.utils.request)str properties on Telegram Objectschat_id is invalidBot.sendDocument(..,filename='')InputFileBot.sendMessage(..., parse_mode=ParseMode.MARKDOWN)TelegramError class (no more handling IOError or URLError)2015-09-05
Released 2.8.2
is_inputfile method2015-09-05
Released 2.8.1
2015-09-04
Released 2.8
chat_id is empty for send* methodssetWebhook now supports sending self-signed certificate2015-08-19
Released 2.7.1
message2015-08-17
Released 2.7
Voice object and sendVoice methodsendAudio2015-08-15
Released 2.6.1
2015-08-14
Released 2.6.0
require_authentication and clearCredentials methodsAUTHORS the proper credits for their contribution for this projectMessage.date and Message.forward_date are now datetime objects2015-08-12
Released 2.5.3
telegram.Bot now supports to be unpickled2015-08-11
Released 2.5.2
telegram.Bot now supports to be pickledstr instead None when message.text is empty2015-08-10
Released 2.5.1
2015-08-09
Released 2.5
2015-08-08
Released 2.4
Emoji class for Python 3PEP8 improvements2015-08-08
Released 2.3
ForceReply classlogging.basicConfig from library2015-07-25
Released 2.2
debug=True when initializing telegram.Bot2015-07-20
Released 2.1
to_dict for Document and Video2015-07-19
Released 2.0
__str__ over to_json()TelegramObject2015-07-15
Released 1.9
PEP8 improvements2015-07-12
Released 1.8
2015-07-11
Released 1.7
username is not defined on chat (special thanks to JRoot3D)2015-07-10
Released 1.6
2015-07-10
Released 1.5
InputFile2015-07-10
Released 1.4
requests lib is no longer required2015-07-10
Released 1.3
setWebhook (special thanks to macrojames)2015-07-09
Released 1.2
CustomKeyboard classes now availablePEP8 improvements2015-07-08
Released 1.1
2015-07-08
Released 1.0