Releases: python-telegram-bot/python-telegram-bot
v13.7
Version 13.7
Released 2021-07-01
This is the technical changelog for version 13.7. More elaborate release notes can be found in the news channel @pythontelegrambotchannel.
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
andExtBot
(#2553)
Minor changes, CI improvements, Doc fixes and Type hinting:
v13.6
Version 13.6
Released 2021-06-06
New Features:
- Arbitrary
callback_data
(#1844) - Add
ContextTypes
&BasePersistence.refresh_user/chat/bot_data
(#2262) - Add
Filters.attachment
(#2528) - Add
pattern
Argument toChosenInlineResultHandler
(#2517)
Major Changes:
- Add
__slots__
(#2345)
Minor changes, CI improvements, Doc fixes and Type hinting:
- Doc Fixes (#2495, #2510)
- Add
max_connections
Parameter toUpdater.start_webhook
(#2547) - Fix for
Promise.done_callback
(#2544) - Improve Code Quality (#2536, #2454)
- Increase Test Coverage of
CallbackQueryHandler
(#2520) - Stabilize CI (#2522, #2537, #2541)
- Fix
send_phone_number_to_provider
argument forBot.send_invoice
(#2527) - Handle Classes as Input for
BasePersistence.replace/insert_bot
(#2523) - Bump Tornado Version and Remove Workaround from #2067 (#2494)
v13.5
Version 13.5
Released 2021-04-30
Major Changes:
-
Full support of Bot API 5.2 (#2489).
Note:
Thestart_parameter
argument ofBot.send_invoice
and the corresponding shortcuts is now optional, so the order of
parameters had to be changed. Make sure to update your method calls accordingly. -
Update
ChatActions
, DeprecatingChatAction.RECORD_AUDIO
andChatAction.UPLOAD_AUDIO
(#2460)
New Features:
- Convenience Utilities & Example for Handling
ChatMemberUpdated
(#2490) Filters.forwarded_from
(#2446)
Minor changes, CI improvements, Doc fixes and Type hinting:
v13.4.1
v13.4
Version 13.4
Released 2021-03-14
Major Changes:
- Full support of Bot API 5.1 (#2424)
Minor changes, CI improvements, doc fixes and type hinting:
v13.3
v13.2
Version 13.2
Released 2021-02-02
Major Changes:
New Features:
- Add Missing Shortcuts to
Message
(#2330) - Rich Comparison for
Bot
(#2320) - Add
run_async
Parameter toConversationHandler
(#2292) - Add New Shortcuts to
Chat
(#2291) - Add New Constant
MAX_ANSWER_CALLBACK_QUERY_TEXT_LENGTH
(#2282) - Allow Passing Custom Filename For All Media (#2249)
- Handle Bytes as File Input (#2233)
Bug Fixes:
- Fix Escaping in Nested Entities in
Message
Properties (#2312) - Adjust Calling of
Dispatcher.update_persistence
(#2285) - Add
quote
kwarg toMessage.reply_copy
(#2232) ConversationHandler
: Docs &edited_channel_post
behavior (#2339)
Minor changes, CI improvements, doc fixes and type hinting:
- Doc Fixes (#2253, #2225)
- Reduce Usage of
typing.Any
(#2321) - Extend Deeplinking Example (#2335)
- Add pyupgrade to pre-commit Hooks (#2301)
- Add PR Template (#2299)
- Drop Nightly Tests & Update Badges (#2323)
- Update Copyright (#2289, #2287)
- Change Order of Class DocStrings (#2256)
- Add macOS to Test Matrix (#2266)
- Start Using Versioning Directives in Docs (#2252)
- Improve Annotations & Docs of Handlers (#2243)
v13.1
Version 13.1
Released 2020-11-29
Major Changes:
- Full support of Bot API 5.0 (#2181, #2186, #2190, #2189, #2183, #2184, #2188, #2185, #2192, #2196, #2193, #2223, #2199, #2187, #2147, #2205)
New Features:
- Add
Defaults.run_async
(#2210) - Improve and Expand
CallbackQuery
Shortcuts (#2172) - Add XOR Filters and make
Filters.name
a Property (#2179) - Add
Filters.document.file_extension
(#2169) - Add
Filters.caption_regex
(#2163) - Add
Filters.chat_type
(#2128) - 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, #2167, #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)
- Update
timerbot.py
tov13.0
(#2149) - Overhaul Constants (#2137)
- Add Python 3.9 to Test Matrix (#2132)
- Switch Codecov to GitHub Action (#2127)
- Specify Required pytz Version (#2121)
v13.0
Version 13.0
Released 2020-10-07
For a detailed guide on how to migrate from v12 to v13, see this wiki page.
Major Changes:
- Deprecate old-style callbacks, i.e. set
use_context=True
by default (#2050) - Refactor Handling of Message VS Update Filters (#2032)
- Deprecate
Message.default_quote
(#1965) - Refactor persistence of Bot instances (#1994)
- Refactor
JobQueue
(#1981) - Refactor handling of kwargs in Bot methods (#1924)
- Refactor
Dispatcher.run_async
, deprecating the@run_async
decorator (#2051)
New Features:
- Type Hinting (#1920)
- Automatic Pagination for
answer_inline_query
(#2072) Defaults.tzinfo
(#2042)- Extend rich comparison of objects (#1724)
- Add
Filters.via_bot
(#2009) - Add missing shortcuts (#2043)
- Allow
DispatcherHandlerStop
inConversationHandler
(#2059) - Make Errors picklable (#2106)
Minor changes, CI improvements, doc fixes or bug fixes:
- Fix Webhook not working on Windows with Python 3.8+ (#2067)
- Fix setting thumbs with
send_media_group
(#2093) - Make
MessageHandler
filter forFilters.update
first (#2085) - Fix
PicklePersistence.flush()
with onlybot_data
(#2017) - Add test for clean argument of
Updater.start_polling/webhook
(#2002) - Doc fixes, refinements and additions (#2005, #2008, #2089, #2094, #2090)
- CI fixes (#2018, #2061)
- Refine
pollbot.py
example (#2047) - Refine Filters in examples (#2027)
- Rename
echobot
examples (#2025) - Use Lock-Bot to lock old threads (#2048, #2052, #2049, #2053)