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

TGINSIGHT POST

Post #92

@pythontelegrambotchannel

python-telegram-bot

Views11,400Post view count
PostedNov 2911/29/2020, 04:22 PM
Post content

Post content

We've just released v13.1. Thank you to everyone who contributed to this release. As usual, upgrade using pip install -U python-telegram-bot. This version brings the long awaited support for Bot API 5.0. PTB now handles all of the long Bot API changelog and provides convenience utilities such as shortcuts for Bot.copy and Filters.sender_chat. Of course PTB also allows you to use your own self hosted Bot API instance. For a full overview on that, please head over to the corresponding wiki page. Besides the API updates, v13.1 brings Defaults.run_async, making it easy to run all handler callbacks and error handlers asynchronously, and some new filters. Note that Filters.private and Filters.group where deprecated in favor of Filters.chat_type. For the full list of changes and improvements, please see below. Major Changes: • Full support of Bot API 5.0 (#2181, #2186, #2190, #2189, #2183, #2184 by harshil21, #2188, #2185, #2192, #2196, #2193, #2223, #2199, #2187, #2147 by NikitaPirate, #2205) New Features: • Add Defaults.run_async (#2210 by starry69) • Improve and Expand CallbackQuery Shortcuts (#2172) • Add XOR Filters and make Filters.name a Property (#2179) • Add Filters.document.file_extension (#2169 by eIGato) • Add Filters.caption_regex (#2163 by marc0777) • Add Filters.chat_type (#2128 by GauthamramRavichandran) • Handle Non-Binary File Input (#2202) Bug Fixes: • Improve Handling of Custom Objects in BasePersistence.insert/replace_bot (#2151) • Fix bugs in replace/insert_bot (#2218) Minor changes, CI improvements, doc fixes and type hinting: • Improve Type hinting (#2204, #2118 by harshil21, #2167 by eIGato, #2136) • Doc Fixes & Extensions (#2201, #2161) • Use F-Strings Where Possible (#2222) • Rename kwargs to _kwargs where possible (#2182) • Comply with PEP561 (#2168) • Improve Code Quality (#2131) • Switch Code Formatting to Black (#2122, #2159, #2158) • Update Wheel Settings (#2142 by michael-k) • Update timerbot.py to v13.0 (#2149 by timqsh) • Overhaul Constants (#2137 by NikitaPirate) • Add Python 3.9 to Test Matrix (#2132) • Switch Codecov to GitHub Action (#2127) • Specify Required pytz Version (#2121 by Konano)