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

TGINSIGHT POST

Post #103

@pythontelegrambotchannel

python-telegram-bot

Views14,800Post view count
PostedJul 107/01/2021, 04:23 PM
Post content

Post content

We've just released v13.7. Thank you to everyone who contributed to this release. As usual, upgrade using pip install -U python-telegram-bot. This release brings full support for Bot API 5.3. Note that Bot.get_chat_member and Chat.get_member now return an instance of a subclass of ChatMember. ⚠️ Due to the changes in the API update, we made three kinds of deprecations: • Bot.{kick_chat_member, get_chat_members_count} were deprecated in favor of the new methods Bot.{ban_chat_member, get_chat_member_count}. Analogously, Chat.{kick_member, get_members_count} were deprecated in favor of the new methods Chat.{ban_member, get_member_count}. • Because ChatMember is now merely a base class for the 6 new ChatMember* subclasses, most of its arguments and attributes were deprecated (except for status and user, which are common to all subclasses). Once we drop these attributes, this will also affect the subclasses due to inheritance. Therefore, you should check which type of ChatMember* you have and only access the attributes that exist for that type of ChatMember*. For this you can either check the type (isinstance(…)) or check the status. • As Bot.get_my_commands can now return a different set of commands depending on the scope and language code, it doesn't make sense anymore to cache the commands in Bot.commands. We therefore deprecated this convenience property. For the full list of changes and improvements, please see below. Please note that this is the last planned 13.x.y release. We are now starting to work towards v14 and will only make another 13.x.y release if there are serious bugs to be fixed or API updates to implement. As stated in our announcement from January, we don't know how long development for v14 will take. We expect v14 to be ready sometime in 2022. Major Changes: • Full support for Bot API 5.3 (#2572) Bug Fixes: • Fix Bug in BasePersistence.insert/replace_bot for Objects with __dict__ in their slots (#2561) • Remove Incorrect Warning About Defaults and ExtBot (#2553) Minor changes, CI improvements, Doc fixes and Type hinting: • Type Hinting Fixes (#2552) • Doc Fixes (#2551) • Improve Deprecation Warning for __slots__ (#2574) • Stabilize CI (#2575) • Fix Coverage Configuration (#2571) • Better Exception-Handling for BasePersistence.replace/insert_bot (#2564 by zeroone2numeral2) • Remove Deprecated pass_args from Deeplinking Example (#2550)