Post content
We've just released v20.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 6.5. ⚠️ With the introduction of ChatJoinRequest.user_chat_id, Telegram emphasizes that User.id does not necessarily coincide with Chat.id in private chats with users. While this has been the case so far, and it's probably unlikely to change without the introduction of new Telegram features, we would like to make you aware of this. For example, this means that shortcut methods like User.send_message will break if User.id will ever not be equal to Chat.id. Moreover, this release some new functionality and pushes the cross-reference links in the documentation to the next level. For the full list of changes and improvements, please see below. Major Changes • Full Support for Bot API 6.5 (#3530) New Features • Add Application(Builder).post_stop (#3466) • Add Chat.effective_name Convenience Property (#3485 by Viicos) • Allow to Adjust HTTP Version and Use HTTP/2 by Default (#3506) Documentation Improvements • Enhance chatmemberbot Example (#3500) • Automatically Generate Cross-Reference Links (#3501, #3529, #3523) • Add Some Graphic Elements to Docs (#3535) • Various Smaller Improvements (#3464, #3483, #3484, #3497 by shivamsn97, #3512 by CrsiX, #3515, #3498) Minor Changes, Documentation Improvements and CI • Update Copyright to 2023 (#3459) • Stabilize Tests on Closing and Hiding the General Forum Topic (#3460) • Fix Dependency Warning Typo (#3474) • Cache Dependencies on GitHub Actions (#3469) • Store Documentation Builts as GitHub Actions Artifacts (#3468) • Add ruff to pre-commit Hooks (#3488) • Improve Warning for days Parameter of JobQueue.run_daily (#3503) • Improve Error Message for NetworkError (#3505) • Lock Inactive Threads Only Once Each Day (#3510) • Bump pytest from 7.2.0 to 7.2.1 (#3513) • Check for 3D Arrays in check_keyboard_type (#3514) • Explicit Type Annotations (#3508) • Increase Verbosity of Type Completeness CI Job (#3531) • Fix CI on Python 3.11 + Windows (#3547) Dependencies • Bump actions/stale from 6 to 7 (#3461) • Bump dessant/lock-threads from 3.0.0 to 4.0.0 (#3462) • pre-commit autoupdate (#3470) • Update httpx requirement from ~=0.23.1 to ~=0.23.3 (#3489) • Update cachetools requirement from ~=5.2.0 to ~=5.2.1 (#3502) • Improve Config for ruff and Bump to v0.0.222 (#3507) • Update cachetools requirement from ~=5.2.1 to ~=5.3.0 (#3520) • Bump isort to 5.12.0 (#3525) • Update apscheduler requirement from ~=3.9.1 to ~=3.10.0 (#3532) • pre-commit autoupdate (#3537) • Update cryptography requirement to >=39.0.1 to address Vulnerability (#3539)