TGTGInsighttelegram intelligenceLIVE / telegram public index
← python-telegram-bot
python-telegram-bot avatar

TGINSIGHT POST

Post #126

@pythontelegrambotchannel

python-telegram-bot

Views14,200Post view count
PostedNov 2211/22/2022, 12:05 PM
Post content

Post content

We've just released v20.0a5. Thank you to everyone who contributed to this release. If you want to upgrade from v20.0a4 to v20.0a5, please upgrade with pip install -U --pre python-telegram-bot. Before upgrading from v13.x to v20.0a5, please carefully read the v20.0a0 release notes. This update brings full support for Bot API 6.3. It also brings new features and some breaking changes. The first breaking change is that the method File.download was split into the methods File.download_to_drive and File.download_to_memory. The second breaking change is only relevant for those who run their bot against a local Bot API server: You will now have to explicitly tell PTB that you're doing this, by using ApplicationBuilder().token(TOKEN).local_mode(True).build(). The upside of this change is that you can now pass file paths as input for e.g. send_document independetly of whether you're using a local API server or not. The final breaking change is another step in our effort to make PTB as free of third party dependencies as possible. In particular, now almost no third party dependencies are installed by default. To use features of the telegram.ext module that require these dependencies, you will have to install PTB e.g. via pip install python-telegram-bot[job-queue]. Please have a look at the readme for more information. A notable new feature is the new attribute api_kwargs of all Telegram classes, which allows to access newly added fields even before PTB adds support for new API versions. Moreover, the string representations of the Telegram classes was completely overhauled. Also, we're delighted to have two new developers in our team: clot27, @mr_lemontree, who have already contributed to this release! The full changelog has become rather long, so please find it here.