Post content
We've just released v20.0b0. Thank you to everyone who contributed to this release. If you want to upgrade from v20.0a6 to v20.0b0, please upgrade with pip install -U --pre python-telegram-bot. Before upgrading from v13.x to v20.0b0, please carefully read the v20.0a0 release notes. This release is the first beta release. It contains the last breaking changes that we had on our roadmap for v20. We are not planning to introduce any more breaking changes before releasing v20.0. Instead, we will mainly give the beta release a short testing period and fix any bugs that might come up. Then it's time for a v20.0 release. For the legacy versions v13.x, this beta release means two things. Firstly, we are not going to backport API changes to v13.x anymore. Secondly, we will stop support for v13.x completely once the stable v20.0 release is there. The breaking change in this release is that TelegramObject and its subclasses are now immutable, i.e. attributes of Update, Message and all other Telegram classes can no longer be overridden or deleted. Moreover, all attributes and return values of bot methods that formerly where lists are now tuples. With these changes, the library better reflects that all the objects usually represent a fixed state on the Telegram servers that can only be changed by making a request to the Bot API. Please see below for the full changelog. Major Changes • Make TelegramObject Immutable (#3249) Minor Changes, Documentation Improvements and CI • Reduce Code Duplication in Testing Defaults (#3419) • Add Notes and Warnings About Optional Dependencies (#3393) • Simplify Internals of Bot Methods (#3396) • Reduce Code Duplication in Several Bot Methods (#3385) • Documentation Improvements (#3386, #3395, #3398, #3403 by Viicos) Dependencies • Bump pytest-xdist from 3.0.2 to 3.1.0 (#3415) • Bump pytest-asyncio from 0.20.2 to 0.20.3 (#3417) • pre-commit autoupdate (#3409)