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

TGINSIGHT POST

Post #137

@pythontelegrambotchannel

python-telegram-bot

Views24,900Post view count
PostedNov 2711/27/2023, 06:14 PM
Post content

Post content

We’ve just released v20.7. Thank you to everyone who contributed to this release. As usual, upgrade using pip install -U python-telegram-bot. This release brings support for socket options, a filter for mentions and separate handling of write_timeout for media methods as new features. Moreover, inconsistencies in the handling of the read_timeout parameter for get_updates were fixed. ⚠️ Note that the changes related to timeout behavior come with some deprecations. Please pay attention to the warnings that PTB issues, especially if you have a custom implementation of the BaseRequest class. For the full list of changes and improvements, please see the below changelog. New Features • Add JobQueue.scheduler_configuration and Corresponding Warnings (#3913 closes #3837) • Add Parameter socket_options to HTTPXRequest (#3935 closes #2965) • Add ApplicationBuilder.(get_updates_)socket_options (#3943) • Improve write_timeout Handling for Media Methods (#3952) • Add filters.Mention (#3941 closes #3799) • Rename proxy_url to proxy and Allow httpx.{Proxy, URL} as Input (#3939 closes #3844) Bug Fixes & Changes • Adjust read_timeout Behavior for Bot.get_updates (#3963 closes #3893) • Improve BaseHandler.__repr__ for Callbacks without __qualname__ (#3934) • Fix Persistency Issue with Ended Non-Blocking Conversations (#3962) • Improve Type Hinting for Arguments with Default Values in Bot (#3942) Documentation Improvements • Add Documentation for __aenter__ and __aexit__ Methods (#3907 closes #3886) • Improve Insertion of Kwargs into Bot Methods (#3965) Internal Changes • Adjust Tests to New Error Messages (#3970) Dependency Updates • Bump pytest-xdist from 3.3.1 to 3.4.0 (#3975) • pre-commit autoupdate (#3967) • Update httpx requirement from ~=0.25.1 to ~=0.25.2 (#3983) • Bump pytest-xdist from 3.4.0 to 3.5.0 (#3982) • Update httpx requirement from ~=0.25.0 to ~=0.25.1 (#3961) • Bump srvaroa/labeler from 1.6.1 to 1.7.0 (#3958) • Update cachetools requirement from ~=5.3.1 to ~=5.3.2 (#3954) • Bump pytest from 7.4.2 to 7.4.3 (#3953)