Post content
We’ve just released v21.1. Thank you to everyone who contributed to this release. As usual, upgrade using pip install -U python-telegram-bot. This update brings full support for Bot API 7.2. Moreover, it removes backward compatibility for functionality deprecated in API 7.1. This is in line with our stated policy ⚠️ Please note that the Bot API update includes breaking changes for Bot.set_sticker_set_thumbnail, InputSticker and StickerSet. See also our earlier post and this GitHub thread for additional information. To integrate the Bot API changes well into the PTB framework, the Message.repl_* methods now also automatically pass the new business_connection_id parameter and the Update.effective_* properties consider the new update types as well. Another change for the Message.reply_* methods is they now reply in the same topic by default. For the full list of changes and improvements, please see the below changelog. Major Changes • API 7.2 (#4180 closes #4179 and #4181, #4181) • Make ChatAdministratorRights/ChatMemberAdministrator.can_*_stories Required (API 7.1) (#4192) Minor Changes • Refactor Debug logging in Bot to Improve Type Hinting (#4151 closes #4010) New Features • Make Message.reply_* Reply in the Same Topic by Default (#4170 by @aelkheir closes #4139) • Accept Socket Objects for Webhooks (#4161 closes #4078) • Add Update.effective_sender (#4168 by @aelkheir closes #4085) Documentation Improvements • Documentation Improvements (#4171, #4158 by @teslaedison) Internal Changes • Temporarily Mark Tests with get_sticker_set as XFAIL due to API 7.2 Update (#4190) Dependency Updates • pre-commit autoupdate (#4184) • Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 (#4185)