ConfusedKarma / CTRL

GNU General Public License v3.0
2 stars 7 forks source link

chore(deps): update dependency python-telegram-bot to v20 - autoclosed #22

Closed renovate[bot] closed 7 months ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
python-telegram-bot (source, changelog) ==11.1.0 -> ==20.8 age adoption passing confidence

Release Notes

python-telegram-bot/python-telegram-bot (python-telegram-bot) ### [`v20.8`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-208) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v20.7...v20.8) \============ *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 `\__. ## Major Changes - API 7.0 (:pr:`4034` closes :issue:`4033`, :pr:`4038` by `@aelkheir `\__) ## Minor Changes - Fix Type Hint for `filters` Parameter of `MessageHandler` (:pr:`4039` by `@Palaptin `\__) - Deprecate `filters.CHAT` (:pr:`4083` closes :issue:`4062`) - Improve Error Handling in Built-In Webhook Handler (:pr:`3987` closes :issue:`3979`) ## New Features - Add Parameter `pattern` to `PreCheckoutQueryHandler` and `filters.SuccessfulPayment` (:pr:`4005` by `@aelkheir `\__ closes :issue:`3752`) - Add Missing Conversions of `type` to Corresponding Enum from `telegram.constants` (:pr:`4067`) - Add Support for Unix Sockets to `Updater.start_webhook` (:pr:`3986` closes :issue:`3978`) - Add `Bot.do_api_request` (:pr:`4084` closes :issue:`4053`) - Add `AsyncContextManager` as Parent Class to `BaseUpdateProcessor` (:pr:`4001`) ## Documentation Improvements - Documentation Improvements (:pr:`3919`) - Add Docstring to Dunder Methods (:pr:`3929` closes :issue:`3926`) - Documentation Improvements (:pr:`4002`, :pr:`4079` by `@kenjitagawa `**, :pr:`4104` by `@xTudoS `**) ## Internal Changes - Drop Usage of DeepSource (:pr:`4100`) - Improve Type Completeness & Corresponding Workflow (:pr:`4035`) - Bump `ruff` and Remove `sort-all` (:pr:`4075`) - Move Handler Files to `_handlers` Subdirectory (:pr:`4064` by `@lucasmolinari `\__ closes :issue:`4060`) - Introduce `sort-all` Hook for `pre-commit` (:pr:`4052`) - Use Recommended `pre-commit` Mirror for `black` (:pr:`4051`) - Remove Unused `DEFAULT_20` (:pr:`3997`) - Migrate From `setup.cfg` to `pyproject.toml` Where Possible (:pr:`4088`) ## Dependency Updates - Bump `black` and `ruff` (:pr:`4089`) - Bump `srvaroa/labeler` from 1.8.0 to 1.10.0 (:pr:`4048`) - Update `tornado` requirement from ~=6.3.3 to ~=6.4 (:pr:`3992`) - Bump `actions/stale` from 8 to 9 (:pr:`4046`) - Bump `actions/setup-python` from 4 to 5 (:pr:`4047`) - `pre-commit` autoupdate (:pr:`4101`) - Bump `actions/upload-artifact` from 3 to 4 (:pr:`4045`) - `pre-commit` autoupdate (:pr:`3996`) - Bump `furo` from 2023.9.10 to 2024.1.29 (:pr:`4094`) - `pre-commit` autoupdate (:pr:`4043`) - Bump `codecov/codecov-action` from 3 to 4 (:pr:`4091`) - Bump `EndBug/add-and-commit` from 9.1.3 to 9.1.4 (:pr:`4090`) - Update `httpx` requirement from ~=0.25.2 to ~=0.26.0 (:pr:`4024`) - Bump `pytest` from 7.4.3 to 7.4.4 (:pr:`4056`) - Bump `srvaroa/labeler` from 1.7.0 to 1.8.0 (:pr:`3993`) - Bump `test-summary/action` from 2.1 to 2.2 (:pr:`4044`) - Bump `dessant/lock-threads` from 4.0.1 to 5.0.1 (:pr:`3994`) ### [`v20.7`](https://togithub.com/python-telegram-bot/python-telegram-bot/releases/tag/v20.7) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v20.6...v20.7) ##### Version 20.7 *Released 2023-11-27* 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). ##### New Features - Add `JobQueue.scheduler_configuration` and Corresponding Warnings ([#​3913](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3913) closes [#​3837](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3837)) - Add Parameter `socket_options` to `HTTPXRequest` ([#​3935](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3935) closes [#​2965](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/2965)) - Add `ApplicationBuilder.(get_updates_)socket_options` ([#​3943](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3943)) - Improve `write_timeout` Handling for Media Methods ([#​3952](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3952)) - Add `filters.Mention` ([#​3941](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3941) closes [#​3799](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3799)) - Rename `proxy_url` to `proxy` and Allow `httpx.{Proxy, URL}` as Input ([#​3939](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3939) closes [#​3844](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3844)) ##### Bug Fixes & Changes - Adjust `read_timeout` Behavior for `Bot.get_updates` ([#​3963](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3963) closes [#​3893](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3893)) - Improve `BaseHandler.__repr__` for Callbacks without `__qualname__` ([#​3934](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3934)) - Fix Persistency Issue with Ended Non-Blocking Conversations ([#​3962](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3962)) - Improve Type Hinting for Arguments with Default Values in `Bot` ([#​3942](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3942)) ##### Documentation Improvements - Add Documentation for `__aenter__` and `__aexit__` Methods ([#​3907](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3907) closes [#​3886](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3886)) - Improve Insertion of Kwargs into `Bot` Methods ([#​3965](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3965)) ##### Internal Changes - Adjust Tests to New Error Messages ([#​3970](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3970)) ##### Dependency Updates - Bump `pytest-xdist` from 3.3.1 to 3.4.0 ([#​3975](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3975)) - `pre-commit` autoupdate ([#​3967](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3967)) - Update `httpx` requirement from ~=0.25.1 to ~=0.25.2 ([#​3983](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3983)) - Bump `pytest-xdist` from 3.4.0 to 3.5.0 ([#​3982](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3982)) - Update `httpx` requirement from ~=0.25.0 to ~=0.25.1 ([#​3961](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3961)) - Bump `srvaroa/labeler` from 1.6.1 to 1.7.0 ([#​3958](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3958)) - Update `cachetools` requirement from ~=5.3.1 to ~=5.3.2 ([#​3954](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3954)) - Bump `pytest` from 7.4.2 to 7.4.3 ([#​3953](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3953)) ### [`v20.6`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-206) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v20.5...v20.6) \============ *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 `\__. ## Major Changes - Drop Backward Compatibility Layer Introduced in :pr:`3853` (API 6.8) (:pr:`3873`) - Full Support for Bot API 6.9 (:pr:`3898`) ## New Features - Add Rich Equality Comparison to `WriteAccessAllowed` (:pr:`3911` closes :issue:`3909`) - Add `__repr__` Methods Added in :pr:`3826` closes :issue:`3770` to Sphinx Documentation (:pr:`3901` closes :issue:`3889`) - Add String Representation for Selected Classes (:pr:`3826` closes :issue:`3770`) ## Minor Changes - Add Support Python 3.12 (:pr:`3915`) - Documentation Improvements (:pr:`3910`) ## Internal Changes - Verify Type Hints for Bot Method & Telegram Class Parameters (:pr:`3868`) - Move Bot API Tests to Separate Workflow File (:pr:`3912`) - Fix Failing `file_size` Tests (:pr:`3906`) - Set Threshold for DeepSource’s PY-R1000 to High (:pr:`3888`) - One-Time Code Formatting Improvement via `--preview` Flag of `black` (:pr:`3882`) - Move Dunder Methods to the Top of Class Bodies (:pr:`3883`) - Remove Superfluous `Defaults.__ne__` (:pr:`3884`) ## Dependency Updates - `pre-commit` autoupdate (:pr:`3876`) - Update `pre-commit` Dependencies (:pr:`3916`) - Bump `actions/checkout` from 3 to 4 (:pr:`3914`) - Update `httpx` requirement from ~=0.24.1 to ~=0.25.0 (:pr:`3891`) - Bump `furo` from 2023.8.19 to 2023.9.10 (:pr:`3890`) - Bump `sphinx` from 7.2.5 to 7.2.6 (:pr:`3892`) - Update `tornado` requirement from ~=6.2 to ~=6.3.3 (:pr:`3675`) - Bump `pytest` from 7.4.0 to 7.4.2 (:pr:`3881`) ### [`v20.5`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-205) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v20.4...v20.5) \============ *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 `\__. ## Major Changes - API 6.8 (:pr:`3853`) - Remove Functionality Deprecated Since Bot API 6.5, 6.6 or 6.7 (:pr:`3858`) ## New Features - Extend Allowed Values for HTTP Version (:pr:`3823` closes :issue:`3821`) - Add `has_args` Parameter to `CommandHandler` (:pr:`3854` by `@thatguylah `\__ closes :issue:`3798`) - Add `Application.stop_running()` and Improve Marking Updates as Read on `Updater.stop()` (:pr:`3804`) ## Minor Changes - Type Hinting Fixes for `WebhookInfo` (:pr:`3871`) - Test and Document `Exception.__cause__` on `NetworkError` (:pr:`3792` closes :issue:`3778`) - Add Support for Python 3.12 RC (:pr:`3847`) ## Documentation Improvements - Remove Version Check from Examples (:pr:`3846`) - Documentation Improvements (:pr:`3803`, :pr:`3797`, :pr:`3816` by `@trim21 `**, :pr:`3829` by `@aelkheir `**) - Provide Versions of `customwebhookbot.py` with Different Frameworks (:pr:`3820` closes :issue:`3717`) ## Dependency Updates - `pre-commit` autoupdate (:pr:`3824`) - Bump `srvaroa/labeler` from 1.6.0 to 1.6.1 (:pr:`3870`) - Bump `sphinx` from 7.0.1 to 7.1.1 (:pr:`3818`) - Bump `sphinx` from 7.2.3 to 7.2.5 (:pr:`3869`) - Bump `furo` from 2023.5.20 to 2023.7.26 (:pr:`3817`) - Update `apscheduler` requirement from ~=3.10.3 to ~=3.10.4 (:pr:`3862`) - Bump `sphinx` from 7.2.2 to 7.2.3 (:pr:`3861`) - Bump `pytest-asyncio` from 0.21.0 to 0.21.1 (:pr:`3801`) - Bump `sphinx-paramlinks` from 0.5.4 to 0.6.0 (:pr:`3840`) - Update `apscheduler` requirement from ~=3.10.1 to ~=3.10.3 (:pr:`3851`) - Bump `furo` from 2023.7.26 to 2023.8.19 (:pr:`3850`) - Bump `sphinx` from 7.1.2 to 7.2.2 (:pr:`3852`) - Bump `sphinx` from 7.1.1 to 7.1.2 (:pr:`3827`) ### [`v20.4`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-204) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v20.3...v20.4) \============ *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 `\__. ## Major Changes - Drop Support for Python 3.7 (:pr:`3728`, :pr:`3742` by `@Trifase `**, :pr:`3749` by `@thefunkycat `**, :pr:`3740` closes :issue:`3732`, :pr:`3754` closes :issue:`3731`, :pr:`3753`, :pr:`3764`, :pr:`3762`, :pr:`3759` closes :issue:`3733`) ## New Features - Make Integration of `APScheduler` into `JobQueue` More Explicit (:pr:`3695`) - Introduce `BaseUpdateProcessor` for Customized Concurrent Handling of Updates (:pr:`3654` closes :issue:`3509`) ## Minor Changes - Fix Inconsistent Type Hints for `timeout` Parameter of `Bot.get_updates` (:pr:`3709` by `@revolter `\__) - Use Explicit Optionals (:pr:`3692` by `@MiguelX413 `\__) ## Bug Fixes - Fix Wrong Warning Text in `KeyboardButton.__eq__` (:pr:`3768`) ## Documentation Improvements - Explicitly set `allowed_updates` in Examples (:pr:`3741` by `@Trifase `\__ closes :issue:`3726`) - Bump `furo` and `sphinx` (:pr:`3719`) - Documentation Improvements (:pr:`3698`, :pr:`3708` by `@revolter `\__, :pr:`3767`) - Add Quotes for Installation Instructions With Optional Dependencies (:pr:`3780`) - Exclude Type Hints from Stability Policy (:pr:`3712`) - Set `httpx` Logging Level to Warning in Examples (:pr:`3746` closes :issue:`3743`) ## Internal Changes - Drop a Legacy `pre-commit.ci` Configuration (:pr:`3697`) - Add Python 3.12 Beta to the Test Matrix (:pr:`3751`) - Use Temporary Files for Testing File Downloads (:pr:`3777`) - Auto-Update Changed Version in Other Files After Dependabot PRs (:pr:`3716`) - Add More `ruff` Rules (:pr:`3763`) - Rename `_handler.py` to `_basehandler.py` (:pr:`3761`) - Automatically Label `pre-commit-ci` PRs (:pr:`3713`) - Rework `pytest` Integration into GitHub Actions (:pr:`3776`) - Fix Two Bugs in GitHub Actions Workflows (:pr:`3739`) ## Dependency Updates - Update `cachetools` requirement from ~=5.3.0 to ~=5.3.1 (:pr:`3738`) - Update `aiolimiter` requirement from ~=1.0.0 to ~=1.1.0 (:pr:`3707`) - `pre-commit` autoupdate (:pr:`3791`) - Bump `sphinxcontrib-mermaid` from 0.8.1 to 0.9.2 (:pr:`3737`) - Bump `pytest-xdist` from 3.2.1 to 3.3.0 (:pr:`3705`) - Bump `srvaroa/labeler` from 1.5.0 to 1.6.0 (:pr:`3786`) - Bump `dependabot/fetch-metadata` from 1.5.1 to 1.6.0 (:pr:`3787`) - Bump `dessant/lock-threads` from 4.0.0 to 4.0.1 (:pr:`3785`) - Bump `pytest` from 7.3.2 to 7.4.0 (:pr:`3774`) - Update `httpx` requirement from ~=0.24.0 to ~=0.24.1 (:pr:`3715`) - Bump `pytest-xdist` from 3.3.0 to 3.3.1 (:pr:`3714`) - Bump `pytest` from 7.3.1 to 7.3.2 (:pr:`3758`) - `pre-commit` autoupdate (:pr:`3747`) ### [`v20.3`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-203) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v20.2...v20.3) \============ *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 `\_. ## Major Changes - Full support for API 6.7 (:pr:`3673`) - Add a Stability Policy (:pr:`3622`) ## New Features - Add `Application.mark_data_for_update_persistence` (:pr:`3607`) - Make `Message.link` Point to Thread View Where Possible (:pr:`3640`) - Localize Received `datetime` Objects According to `Defaults.tzinfo` (:pr:`3632`) ## Minor Changes, Documentation Improvements and CI - Empower `ruff` (:pr:`3594`) - Drop Usage of `sys.maxunicode` (:pr:`3630`) - Add String Representation for `RequestParameter` (:pr:`3634`) - Stabilize CI by Rerunning Failed Tests (:pr:`3631`) - Give Loggers Better Names (:pr:`3623`) - Add Logging for Invalid JSON Data in `BasePersistence.parse_json_payload` (:pr:`3668`) - Improve Warning Categories & Stacklevels (:pr:`3674`) - Stabilize `test_delete_sticker_set` (:pr:`3685`) - Shield Update Fetcher Task in `Application.start` (:pr:`3657`) - Recover 100% Type Completeness (:pr:`3676`) - Documentation Improvements (:pr:`3628`, :pr:`3636`, :pr:`3694`) ## Dependencies - Bump `actions/stale` from 7 to 8 (:pr:`3644`) - Bump `furo` from 2023.3.23 to 2023.3.27 (:pr:`3643`) - `pre-commit` autoupdate (:pr:`3646`, :pr:`3688`) - Remove Deprecated `codecov` Package from CI (:pr:`3664`) - Bump `sphinx-copybutton` from 0.5.1 to 0.5.2 (:pr:`3662`) - Update `httpx` requirement from ~=0.23.3 to ~=0.24.0 (:pr:`3660`) - Bump `pytest` from 7.2.2 to 7.3.1 (:pr:`3661`) ### [`v20.2`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-202) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v20.1...v20.2) \============ *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 `\_. ## Major Changes - Full Support for API 6.6 (:pr:`3584`) - Revert to HTTP/1.1 as Default and make HTTP/2 an Optional Dependency (:pr:`3576`) ## Minor Changes, Documentation Improvements and CI - Documentation Improvements (:pr:`3565`, :pr:`3600`) - Handle Symbolic Links in `was_called_by` (:pr:`3552`) - Tidy Up Tests Directory (:pr:`3553`) - Enhance `Application.create_task` (:pr:`3543`) - Make Type Completeness Workflow Usable for `PRs` from Forks (:pr:`3551`) - Refactor and Overhaul the Test Suite (:pr:`3426`) ## Dependencies - Bump `pytest-asyncio` from 0.20.3 to 0.21.0 (:pr:`3624`) - Bump `furo` from 2022.12.7 to 2023.3.23 (:pr:`3625`) - Bump `pytest-xdist` from 3.2.0 to 3.2.1 (:pr:`3606`) - `pre-commit` autoupdate (:pr:`3577`) - Update `apscheduler` requirement from ~=3.10.0 to ~=3.10.1 (:pr:`3572`) - Bump `pytest` from 7.2.1 to 7.2.2 (:pr:`3573`) - Bump `pytest-xdist` from 3.1.0 to 3.2.0 (:pr:`3550`) - Bump `sphinxcontrib-mermaid` from 0.7.1 to 0.8 (:pr:`3549`) ### [`v20.1`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-201) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v20.0...v20.1) \============ *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 `\_. ## Major Changes - Full Support for Bot API 6.5 (:pr:`3530`) ## New Features - Add `Application(Builder).post_stop` (:pr:`3466`) - Add `Chat.effective_name` Convenience Property (:pr:`3485`) - Allow to Adjust HTTP Version and Use HTTP/2 by Default (:pr:`3506`) ## Documentation Improvements - Enhance `chatmemberbot` Example (:pr:`3500`) - Automatically Generate Cross-Reference Links (:pr:`3501`, :pr:`3529`, :pr:`3523`) - Add Some Graphic Elements to Docs (:pr:`3535`) - Various Smaller Improvements (:pr:`3464`, :pr:`3483`, :pr:`3484`, :pr:`3497`, :pr:`3512`, :pr:`3515`, :pr:`3498`) ## Minor Changes, Documentation Improvements and CI - Update Copyright to 2023 (:pr:`3459`) - Stabilize Tests on Closing and Hiding the General Forum Topic (:pr:`3460`) - Fix Dependency Warning Typo (:pr:`3474`) - Cache Dependencies on `GitHub` Actions (:pr:`3469`) - Store Documentation Builts as `GitHub` Actions Artifacts (:pr:`3468`) - Add `ruff` to `pre-commit` Hooks (:pr:`3488`) - Improve Warning for `days` Parameter of `JobQueue.run_daily` (:pr:`3503`) - Improve Error Message for `NetworkError` (:pr:`3505`) - Lock Inactive Threads Only Once Each Day (:pr:`3510`) - Bump `pytest` from 7.2.0 to 7.2.1 (:pr:`3513`) - Check for 3D Arrays in `check_keyboard_type` (:pr:`3514`) - Explicit Type Annotations (:pr:`3508`) - Increase Verbosity of Type Completeness CI Job (:pr:`3531`) - Fix CI on Python 3.11 + Windows (:pr:`3547`) ## Dependencies - Bump `actions/stale` from 6 to 7 (:pr:`3461`) - Bump `dessant/lock-threads` from 3.0.0 to 4.0.0 (:pr:`3462`) - `pre-commit` autoupdate (:pr:`3470`) - Update `httpx` requirement from ~=0.23.1 to ~=0.23.3 (:pr:`3489`) - Update `cachetools` requirement from ~=5.2.0 to ~=5.2.1 (:pr:`3502`) - Improve Config for `ruff` and Bump to `v0.0.222` (:pr:`3507`) - Update `cachetools` requirement from ~=5.2.1 to ~=5.3.0 (:pr:`3520`) - Bump `isort` to 5.12.0 (:pr:`3525`) - Update `apscheduler` requirement from ~=3.9.1 to ~=3.10.0 (:pr:`3532`) - `pre-commit` autoupdate (:pr:`3537`) - Update `cryptography` requirement to >=39.0.1 to address Vulnerability (:pr:`3539`) ### [`v20.0`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-200) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v13.15...v20.0) \============ *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 `\_. ## Major Changes - Full Support For Bot API 6.4 (:pr:`3449`) ## Minor Changes, Documentation Improvements and CI - Documentation Improvements (:pr:`3428`, :pr:`3423`, :pr:`3429`, :pr:`3441`, :pr:`3404`, :pr:`3443`) - Allow `Sequence` Input for Bot Methods (:pr:`3412`) - Update Link-Check CI and Replace a Dead Link (:pr:`3456`) - Freeze Classes Without Arguments (:pr:`3453`) - Add New Constants (:pr:`3444`) - Override `Bot.__deepcopy__` to Raise `TypeError` (:pr:`3446`) - Add Log Decorator to `Bot.get_webhook_info` (:pr:`3442`) - Add Documentation On Verifying Releases (:pr:`3436`) - Drop Undocumented `Job.__lt__` (:pr:`3432`) ## Dependencies - Downgrade `sphinx` to 5.3.0 to Fix Search (:pr:`3457`) - Bump `sphinx` from 5.3.0 to 6.0.0 (:pr:`3450`) ### [`v13.15`](https://togithub.com/python-telegram-bot/python-telegram-bot/releases/tag/v13.15) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v13.14...v13.15) # Version 13.15 *Released 2022-12-06* This is the technical changelog for version 13.15. More elaborate release notes can be found in the news channel [@​pythontelegrambotchannel](https://t.me/pythontelegrambotchannel). **Major Changes:** - Full Support for API 6.3 ([#​3392](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3392)) **Bug Fixes:** - Fix Bugs in `Bot.answer_web_app_query` ([#​3364](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3364)) ### [`v13.14`](https://togithub.com/python-telegram-bot/python-telegram-bot/releases/tag/v13.14) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v13.13...v13.14) # Version 13.14 *Released 2022-09-04* This is the technical changelog for version 13.14. More elaborate release notes can be found in the news channel [@​pythontelegrambotchannel](https://t.me/pythontelegrambotchannel). **Major Changes:** - Full Support for API 6.2 ([#​3203](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3203)) **Minor Changes:** - Documentation Improvements ([#​3144](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3144), [#​3140](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3140), [#​3164](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3164)) - Pin `tornado` to Version 6.1 ([#​3145](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3145)) ### [`v13.13`](https://togithub.com/python-telegram-bot/python-telegram-bot/releases/tag/v13.13) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v13.12...v13.13) # Version 13.13 *Released 2022-06-28* This is the technical changelog for version 13.13. More elaborate release notes can be found in the news channel [@​pythontelegrambotchannel](https://t.me/pythontelegrambotchannel). **Major Changes:** - Full Support for API 6.1 ([#​3117](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3117)) ### [`v13.12`](https://togithub.com/python-telegram-bot/python-telegram-bot/releases/tag/v13.12) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v13.11...v13.12) # Version 13.12 *Released 2022-05-26* This is the technical changelog for version 13.12. More elaborate release notes can be found in the news channel [@​pythontelegrambotchannel](https://t.me/pythontelegrambotchannel). **Major Changes:** - Full Support for API 6.0 ([#​3027](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3027)) **Minor Changes:** - Documentation Improvements ([#​3029](https://togithub.com/python-telegram-bot/python-telegram-bot/issues/3029)) ### [`v13.11`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1311) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v13.10...v13.11) \============= *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 `\_. **Major Changes:** - Full Support for Bot API 5.7 (:pr:`2881`) ### [`v13.10`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1310) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v13.9...v13.10) \============= *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 `\_. **Major Changes:** - Full Support for API 5.6 (:pr:`2835`) **Minor Changes & Doc fixes:** - Update Copyright to 2022 (:pr:`2836`) - Update Documentation of `BotCommand` (:pr:`2820`) ### [`v13.9`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-139) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v13.8.1...v13.9) \============ *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 `\_. **Major Changes:** - Full Support for Api 5.5 (:pr:`2809`) **Minor Changes** - Adjust Automated Locking of Inactive Issues (:pr:`2775`) ### [`v13.8.1`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1381) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v13.8...v13.8.1) \============== *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 `\_. **Doc fixes:** - Add `ChatJoinRequest(Handler)` to Docs (:pr:`2771`) ### [`v13.8`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1381) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v13.7...v13.8) \============== *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 `\_. **Doc fixes:** - Add `ChatJoinRequest(Handler)` to Docs (:pr:`2771`) ### [`v13.7`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-137) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v13.6...v13.7) \============ *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 `\_. **Major Changes:** - Full support for Bot API 5.3 (:pr:`2572`) **Bug Fixes:** - Fix Bug in `BasePersistence.insert/replace_bot` for Objects with `__dict__` in their slots (:pr:`2561`) - Remove Incorrect Warning About `Defaults` and `ExtBot` (:pr:`2553`) **Minor changes, CI improvements, Doc fixes and Type hinting:** - Type Hinting Fixes (:pr:`2552`) - Doc Fixes (:pr:`2551`) - Improve Deprecation Warning for `__slots__` (:pr:`2574`) - Stabilize CI (:pr:`2575`) - Fix Coverage Configuration (:pr:`2571`) - Better Exception-Handling for `BasePersistence.replace/insert_bot` (:pr:`2564`) - Remove Deprecated `pass_args` from Deeplinking Example (:pr:`2550`) ### [`v13.6`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-136) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v13.5...v13.6) \============ *Released 2021-06-06* New Features: - Arbitrary `callback_data` (:pr:`1844`) - Add `ContextTypes` & `BasePersistence.refresh_user/chat/bot_data` (:pr:`2262`) - Add `Filters.attachment` (:pr:`2528`) - Add `pattern` Argument to `ChosenInlineResultHandler` (:pr:`2517`) Major Changes: - Add `slots` (:pr:`2345`) Minor changes, CI improvements, Doc fixes and Type hinting: - Doc Fixes (:pr:`2495`, :pr:`2510`) - Add `max_connections` Parameter to `Updater.start_webhook` (:pr:`2547`) - Fix for `Promise.done_callback` (:pr:`2544`) - Improve Code Quality (:pr:`2536`, :pr:`2454`) - Increase Test Coverage of `CallbackQueryHandler` (:pr:`2520`) - Stabilize CI (:pr:`2522`, :pr:`2537`, :pr:`2541`) - Fix `send_phone_number_to_provider` argument for `Bot.send_invoice` (:pr:`2527`) - Handle Classes as Input for `BasePersistence.replace/insert_bot` (:pr:`2523`) - Bump Tornado Version and Remove Workaround from :pr:`2067` (:pr:`2494`) ### [`v13.5`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-135) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v13.4.1...v13.5) \============ *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:** - Convenience Utilities & Example for Handling `ChatMemberUpdated` (:pr:`2490`) - `Filters.forwarded_from` (:pr:`2446`) **Minor changes, CI improvements, Doc fixes and Type hinting:** - Improve Timeouts in `ConversationHandler` (:pr:`2417`) - Stabilize CI (:pr:`2480`) - Doc Fixes (:pr:`2437`) - Improve Type Hints of Data Filters (:pr:`2456`) - Add Two `UserWarnings` (:pr:`2464`) - Improve Code Quality (:pr:`2450`) - Update Fallback Test-Bots (:pr:`2451`) - Improve Examples (:pr:`2441`, :pr:`2448`) ### [`v13.4.1`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1341) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v13.4...v13.4.1) \============== *Released 2021-03-14* **Hot fix release:** - Fixed a bug in `setup.py` (:pr:`2431`) ### [`v13.4`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1341) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v13.3...v13.4) \============== *Released 2021-03-14* **Hot fix release:** - Fixed a bug in `setup.py` (:pr:`2431`) ### [`v13.3`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-133) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v13.2...v13.3) \============ *Released 2021-02-19* **Major Changes:** - Make `cryptography` Dependency Optional & Refactor Some Tests (:pr:`2386`, :pr:`2370`) - Deprecate `MessageQueue` (:pr:`2393`) **Bug Fixes:** - Refactor `Defaults` Integration (:pr:`2363`) - Add Missing `telegram.SecureValue` to init and Docs (:pr:`2398`) **Minor changes:** - Doc Fixes (:pr:`2359`) ### [`v13.2`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-132) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v13.1...v13.2) \============ *Released 2021-02-02* **Major Changes:** - Introduce `python-telegram-bot-raw` (:pr:`2324`) - Explicit Signatures for Shortcuts (:pr:`2240`) **New Features:** - Add Missing Shortcuts to `Message` (:pr:`2330`) - Rich Comparison for `Bot` (:pr:`2320`) - Add `run_async` Parameter to `ConversationHandler` (:pr:`2292`) - Add New Shortcuts to `Chat` (:pr:`2291`) - Add New Constant `MAX_ANSWER_CALLBACK_QUERY_TEXT_LENGTH` (:pr:`2282`) - Allow Passing Custom Filename For All Media (:pr:`2249`) - Handle Bytes as File Input (:pr:`2233`) **Bug Fixes:** - Fix Escaping in Nested Entities in `Message` Properties (:pr:`2312`) - Adjust Calling of `Dispatcher.update_persistence` (:pr:`2285`) - Add `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:** - Doc Fixes (:pr:`2253`, :pr:`2225`) - Reduce Usage of `typing.Any` (:pr:`2321`) - Extend Deeplinking Example (:pr:`2335`) - Add pyupgrade to pre-commit Hooks (:pr:`2301`) - Add PR Template (:pr:`2299`) - Drop Nightly Tests & Update Badges (:pr:`2323`) - Update Copyright (:pr:`2289`, :pr:`2287`) - Change Order of Class DocStrings (:pr:`2256`) - Add macOS to Test Matrix (:pr:`2266`) - Start Using Versioning Directives in Docs (:pr:`2252`) - Improve Annotations & Docs of Handlers (:pr:`2243`) ### [`v13.1`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1311) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v13.0...v13.1) \============= *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 `\_. **Major Changes:** - Full Support for Bot API 5.7 (:pr:`2881`) ### [`v13.0`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-130) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v12.8...v13.0) \============ *Released 2020-10-07* **For a detailed guide on how to migrate from v12 to v13, see this** `wiki page `\_. **Major Changes:** - Deprecate old-style callbacks, i.e. set `use_context=True` by default (:pr:`2050`) - Refactor Handling of Message VS Update Filters (:pr:`2032`) - Deprecate `Message.default_quote` (:pr:`1965`) - Refactor persistence of Bot instances (:pr:`1994`) - Refactor `JobQueue` (:pr:`1981`) - Refactor handling of kwargs in Bot methods (:pr:`1924`) - Refactor `Dispatcher.run_async`, deprecating the `@run_async` decorator (:pr:`2051`) **New Features:** - Type Hinting (:pr:`1920`) - Automatic Pagination for `answer_inline_query` (:pr:`2072`) - `Defaults.tzinfo` (:pr:`2042`) - Extend rich comparison of objects (:pr:`1724`) - Add `Filters.via_bot` (:pr:`2009`) - Add missing shortcuts (:pr:`2043`) - Allow `DispatcherHandlerStop` in `ConversationHandler` (:pr:`2059`) - Make Errors picklable (:pr:`2106`) **Minor changes, CI improvements, doc fixes or bug fixes:** - Fix Webhook not working on Windows with Python 3.8+ (:pr:`2067`) - Fix setting thumbs with `send_media_group` (:pr:`2093`) - Make `MessageHandler` filter for `Filters.update` first (:pr:`2085`) - Fix `PicklePersistence.flush()` with only `bot_data` (:pr:`2017`) - Add test for clean argument of `Updater.start_polling/webhook` (:pr:`2002`) - Doc fixes, refinements and additions (:pr:`2005`, :pr:`2008`, :pr:`2089`, :pr:`2094`, :pr:`2090`) - CI fixes (:pr:`2018`, :pr:`2061`) - Refine `pollbot.py` example (:pr:`2047`) - Refine Filters in examples (:pr:`2027`) - Rename `echobot` examples (:pr:`2025`) - Use Lock-Bot to lock old threads (:pr:`2048`, :pr:`2052`, :pr:`2049`, :pr:`2053`) ### [`v12.8`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-128) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v12.7...v12.8) \============ *Released 2020-06-22* **Major Changes:** - Remove Python 2 support (:pr:`1715`) - Bot API 4.9 support (:pr:`1980`) - IDs/Usernames of `Filters.user` and `Filters.chat` can now be updated (:pr:`1757`) **Minor changes, CI improvements, doc fixes or bug fixes:** - Update contribution guide and stale bot (:pr:`1937`) - Remove `NullHandlers` (:pr:`1913`) - Improve and expand examples (:pr:`1943`, :pr:`1995`, :pr:`1983`, :pr:`1997`) - Doc fixes (:pr:`1940`, :pr:`1962`) - Add `User.send_poll()` shortcut (:pr:`1968`) - Ignore private attributes en `TelegramObject.to_dict()` (:pr:`1989`) - Stabilize CI (:pr:`2000`) ### [`v12.7`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-127) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v12.6.1...v12.7) \============ *Released 2020-05-02* **Major Changes:** - Bot API 4.8 support. **Note:** The `Dice` object now has a second positional argument `emoji`. This is relevant, if you instantiate `Dice` objects manually. (:pr:`1917`) - Added `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:** - New method `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:** - Stabalize CI (:pr:`1919`, :pr:`1931`) - Use ABCs `@abstractmethod` instead of raising `NotImplementedError` for `Handler`, `BasePersistence` and `BaseFilter` (:pr:`1905`) - Doc fixes (:pr:`1914`, :pr:`1902`, :pr:`1910`) ### [`v12.6.1`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1261) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v12.6...v12.6.1) \============== *Released 2020-04-11* **Bug fixes:** - Fix serialization of `reply_markup` in media messages (:pr:`1889`) ### [`v12.6`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1261) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v12.5.1...v12.6) \============== *Released 2020-04-11* **Bug fixes:** - Fix serialization of `reply_markup` in media messages (:pr:`1889`) ### [`v12.5.1`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1251) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v12.5...v12.5.1) \============== *Released 2020-03-30* **Minor changes, doc fixes or bug fixes:** - Add missing docs for `PollHandler` and `PollAnswerHandler` (:pr:`1853`) - Fix wording in `Filters` docs (:pr:`1855`) - Reorder tests to make them more stable (:pr:`1835`) - Make `ConversationHandler` attributes immutable (:pr:`1756`) - Make `PrefixHandler` attributes `command` and `prefix` editable (:pr:`1636`) - Fix UTC as default `tzinfo` for `Job` (:pr:`1696`) ### [`v12.5`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1251) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v12.4.2...v12.5) \============== *Released 2020-03-30* **Minor changes, doc fixes or bug fixes:** - Add missing docs for `PollHandler` and `PollAnswerHandler` (:pr:`1853`) - Fix wording in `Filters` docs (:pr:`1855`) - Reorder tests to make them more stable (:pr:`1835`) - Make `ConversationHandler` attributes immutable (:pr:`1756`) - Make `PrefixHandler` attributes `command` and `prefix` editable (:pr:`1636`) - Fix UTC as default `tzinfo` for `Job` (:pr:`1696`) ### [`v12.4.2`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1242) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v12.4.1...v12.4.2) \============== *Released 2020-02-10* **Bug Fixes** - Pass correct parse_mode to InlineResults if bot.defaults is None (:pr:`1763`) - Make sure PP can read files that dont have bot_data (:pr:`1760`) ### [`v12.4.1`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1241) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v12.4.0...v12.4.1) \============== *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. ### [`v12.4.0`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1240) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v12.3.0...v12.4.0) \============== *Released 2020-02-08* **New features:** - Set default values for arguments appearing repeatedly. We also have a `wiki page for the new defaults`\_. (:pr:`1490`) - Store data in `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:** - Add `disptacher` argument to `Updater` to allow passing a customized `Dispatcher` (:pr:`1484`) - Add missing names for `Filters` (:pr:`1632`) - Documentation fixes (:pr:`1624`, :pr:`1647`, :pr:`1669`, :pr:`1703`, :pr:`1718`, :pr:`1734`, :pr:`1740`, :pr:`1642`, :pr:`1739`, :pr:`1746`) - CI improvements (:pr:`1716`, :pr:`1731`, :pr:`1738`, :pr:`1748`, :pr:`1749`, :pr:`1750`, :pr:`1752`) - Fix spelling issue for `encode_conversations_to_json` (:pr:`1661`) - Remove double assignement of `Dispatcher.job_queue` (:pr:`1698`) - Expose dispatcher as property for `CallbackContext` (:pr:`1684`) - Fix `None` check in `JobQueue._put()` (:pr:`1707`) - Log datetimes correctly in `JobQueue` (:pr:`1714`) - Fix false `Message.link` creation for private groups (:pr:`1741`) - Add option `--with-upstream-urllib3` to `setup.py` to allow using non-vendored version (:pr:`1725`) - Fix persistence for nested `ConversationHandlers` (:pr:`1679`) - Improve handling of non-decodable server responses (:pr:`1623`) - Fix download for files without `file_path` (:pr:`1591`) - test_webhook_invalid_posts is now considered flaky and retried on failure (:pr:`1758`) .. \_`wiki page for the new defaults`: https://github.com/python-telegram-bot/python-telegram-bot/wiki/Adding-defaults-to-your-bot ### [`v12.3.0`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1230) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v12.2.0...v12.3.0) \============== *Released 2020-01-11* **New features:** - `Filters.caption` allows only messages with caption (:pr:`1631`). - Filter for exact messages/captions with new capability of `Filters.text` and `Filters.caption`. Especially useful in combination with ReplyKeyboardMarkup. (:pr:`1631`). **Major changes:** - Fix inconsistent handling of naive datetimes (:pr:`1506`). **Minor changes, CI improvements or bug fixes:** - Documentation fixes (:pr:`1558`, :pr:`1569`, :pr:`1579`, :pr:`1572`, :pr:`1566`, :pr:`1577`, :pr:`1656`). - Add mutex protection on `ConversationHandler` (:pr:`1533`). - Add `MAX_PHOTOSIZE_UPLOAD` constant (:pr:`1560`). - Add args and kwargs to `Message.forward()` (:pr:`1574`). - Transfer to GitHub Actions CI (:pr:`1555`, :pr:`1556`, :pr:`1605`, :pr:`1606`, :pr:`1607`, :pr:`1612`, :pr:`1615`, :pr:`1645`). - Fix deprecation warning with Py3.8 by vendored urllib3 (:pr:`1618`). - Simplify assignements for optional arguments (:pr:`1600`) - Allow private groups for `Message.link` (:pr:`1619`). - Fix wrong signature call for `ConversationHandler.TIMEOUT` handlers (:pr:`1653`). ### [`v12.2.0`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1220) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v12.1.1...v12.2.0) \============== *Released 2019-10-14* **New features:** - Nested ConversationHandlers (:pr:`1512`). **Minor changes, CI improvments or bug fixes:** - Fix CI failures due to non-backward compat attrs depndency (:pr:`1540`). - travis.yaml: TEST_OFFICIAL removed from allowed_failures. - Fix typos in examples (:pr:`1537`). - Fix Bot.to_dict to use proper first_name (:pr:`1525`). - Refactor `test_commandhandler.py` (:pr:`1408`). - Add Python 3.8 (RC version) to Travis testing matrix (:pr:`1543`). - test_bot.py: Add to_dict test (:pr:`1544`). - Flake config moved into setup.cfg (:pr:`1546`). ### [`v12.1.1`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1211) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v12.1.0...v12.1.1) \============== *Released 2019-09-18* **Hot fix release** Fixed regression in the vendored urllib3 (:pr:`1517`). ### [`v12.1.0`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1210) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v12.0.0...v12.1.0) \================ *Released 2019-09-13* **Major changes:** - Bot API 4.4 support (:pr:`1464`, :pr:`1510`) - Add `get_file` method to `Animation` & `ChatPhoto`. Add, `get_small_file` & `get_big_file` methods to `ChatPhoto` (:pr:`1489`) - Tools for deep linking (:pr:`1049`) **Minor changes and/or bug fixes:** - Documentation fixes (:pr:`1500`, :pr:`1499`) - Improved examples (:pr:`1502`) ### [`v12.0.0`](https://togithub.com/python-telegram-bot/python-telegram-bot/blob/HEAD/CHANGES.rst#Version-1200) [Compare Source](https://togithub.com/python-telegram-bot/python-telegram-bot/compare/v11.1.0...v12.0.0) \================ *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:** - Context based callbacks - Persistence - PrefixHandler added (Handler overhaul) - Deprecation of RegexHandler and edited_messages, channel_post, etc. arguments (Filter overhaul) - Various ConversationHandler changes and fixes - Bot API 4.1, 4.2, 4.3 support - Python 3.4 is no longer supported - Error Handler now handles all types of exceptions (:pr:`1485`) - Return UTC from from_timestamp() (:pr:`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.** ## Context based callbacks (:pr:`1100`) - Use of `pass_` in handlers is deprecated. - Instead use `use_context=True` on `Updater` or `Dispatcher` and change callback from (bot, update, others...) to (update, context). - This also applies to error handlers `Dispatcher.add_error_handler` and JobQueue jobs (change (bot, job) to (context) here). - For users with custom handlers subclassing Handler, this is mostly backwards compatible, but to use the new context based callbacks you need to implement the new collect_additional_context method. - Passing bot to `JobQueue.__init__` is deprecated. Use JobQueue.set_dispatcher with a dispatcher instead. - Dispatcher makes sure to use a single `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`) - If you have custom handlers they will need to be updated to support the changes in this release. - Update all examples to use context based callbacks. ## Persistence (:pr:`1017`) - Added PicklePersistence and DictPersistence for adding persistence to your bots. - BasePersistence can be subclassed for all your persistence needs. - Add a new example that shows a persistent ConversationHandler bot ## Handler overhaul (:pr:`1114`) - CommandHandler now only triggers on actual commands as defined by telegram servers (everything that the clients mark as a tabable link). - PrefixHandler can be used if you need to trigger on prefixes (like all messages starting with a "/" (old CommandHandler behaviour) or even custom prefixes like "#" or "!"). ## Filter overhaul (:pr:`1221`) - RegexHandler is deprecated and should be replaced with a MessageHandler with a regex filter. - Use update filters to filter update types instead of arguments (message_updates, channel_post_updates and edited_updates) on the handlers. - Completely remove allow_edited argument - it has been deprecated for a while. - data_filters now exist which allows filters that return data into the callback function. This is how the regex filter is implemented. - All this means that it no longer possible to use a list of filters in a handler. Use bitwise operators instead! ## ConversationHandler - Remove `run_async_timeout` and `timed_out_behavior` arguments (:pr:`1344`) - Replace with `WAITING` constant and behavior from states (:pr:`1344`) - Only emit one warning for multiple CallbackQueryHandlers in a ConversationHandler (:pr:`1319`) - Use warnings.warn for ConversationHandler warnings (:pr:`1343`) - Fix unresolvable promises (:pr:`1270`) ## Bug fixes & improvements - Handlers should be faster due to deduped logic. - Avoid compiling compiled regex in regex filter. (:pr:`1314`) - Add missing `left_chat_member` to Message.MESSAGE_TYPES (:pr:`1336`) - Make custom timeouts actually work properly (:pr:`1330`) - Add convenience classmethods (from_button, from_row and from_column) to InlineKeyboardMarkup - Small typo fix in setup.py (:pr:`1306`) - Add Conflict error (HTTP error code 409) (:pr:`1154`) - Change MAX_CAPTION_LENGTH to 1024 (:pr:`1262`) - Remove some unnecessary clauses (:pr:`1247`, :pr:`1239`) - Allow filenames without dots in them when sending files (:pr:`1228`) - Fix uploading files with unicode filenames (:pr:`1214`) - Replace http.server with Tornado (:pr:`1191`) - Allow SOCKSConnection to parse username and password from URL (:pr:`1211`) - Fix for arguments in passport/data.py (:pr:`1213`) - Improve message entity parsing by adding text_mention (:pr:`1206`) - Documentation fixes (:pr:`1348`, :pr:`1397`, :pr:`1436`) - Merged filters short-circuit (:pr:`1350`) - Fix webhook listen with tornado (:pr:`1383`) - Call task_done() on update queue after update processing finished (:pr:`1428`) - Fix send_location() - latitude may be 0 (:pr:`1437`) - Make MessageEntity objects comparable (:pr:`1465`) - Add prefix to thread names (:pr:`1358`) ## Buf fixes since v12.0.0b1 - Fix setting bot on ShippingQuery (:pr:`1355`) - Fix \_trigger_timeout() missing 1 required positional argument: 'job' (:pr:`1367`) - Add missing message.text check in PrefixHandler check_update (:pr:`1375`) - Make updates persist even on DispatcherHandlerStop (:pr:`1463`) - Dispatcher force updating persistence object's chat data attribute(:pr:`1462`) ## Internal improvements - Finally fix our CI builds mostly (too many commits and PRs to list) - Use multiple bots for CI to improve testing times significantly. - Allow pypy to fail in CI. - Remove the last CamelCase CheckUpdate methods from the handlers we missed earlier. - test_official is now executed in a different job

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.