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)