Skip to content

Releases: python-telegram-bot/python-telegram-bot

v13.7

01 Jul 16:20
Compare
Choose a tag to compare

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 and ExtBot (#2553)

Minor changes, CI improvements, Doc fixes and Type hinting:

  • Type Hinting Fixes (#2552)
  • Doc Fixes (#2551)
  • Improve Deprecation Warning for __slots__ (#2574)
  • Stabilize CI (#2575)
  • Fix Coverage Configuration (#2571)
  • Better Exception-Handling for BasePersistence.replace/insert_bot (#2564)
  • Remove Deprecated pass_args from Deeplinking Example (#2550)

v13.6

06 Jun 10:36
Compare
Choose a tag to compare

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 to ChosenInlineResultHandler (#2517)

Major Changes:

Minor changes, CI improvements, Doc fixes and Type hinting:

  • Doc Fixes (#2495, #2510)
  • Add max_connections Parameter to Updater.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 for Bot.send_invoice (#2527)
  • Handle Classes as Input for BasePersistence.replace/insert_bot (#2523)
  • Bump Tornado Version and Remove Workaround from #2067 (#2494)

v13.5

30 Apr 09:24
Compare
Choose a tag to compare

Version 13.5

Released 2021-04-30

Major Changes:

  • Full support of Bot API 5.2 (#2489).

    Note:
    The start_parameter argument of Bot.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, Deprecating ChatAction.RECORD_AUDIO and ChatAction.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:

  • Improve Timeouts in ConversationHandler (#2417)
  • Stabilize CI (#2480)
  • Doc Fixes (#2437)
  • Improve Type Hints of Data Filters (#2456)
  • Add Two UserWarnings (#2464)
  • Improve Code Quality (#2450)
  • Update Fallback Test-Bots (#2451)
  • Improve Examples (#2441, #2448)

v13.4.1

14 Mar 18:56
Compare
Choose a tag to compare

Version 13.4.1

Released 2021-03-14

Hot fix release:

  • Fixed a bug in setup.py (#2431)

v13.4

14 Mar 18:05
Compare
Choose a tag to compare

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:

  • Improve Updater.set_webhook (#2419)
  • Doc Fixes (#2404)
  • Type Hinting Fixes (#2425)
  • Update pre-commit Settings (#2415)
  • Fix Logging for Vendored urllib3 (#2427)
  • Stabilize Tests (#2409)

v13.3

19 Feb 19:08
Compare
Choose a tag to compare

Version 13.3

Released 2021-02-19

Major Changes:

  • Make cryptography Dependency Optional & Refactor Some Tests (#2386, #2370)
  • Deprecate MessageQueue (#2393)

Bug Fixes:

  • Refactor Defaults Integration (#2363)
  • Add Missing telegram.SecureValue to init and Docs (#2398)

Minor changes:

v13.2

02 Feb 20:03
Compare
Choose a tag to compare

Version 13.2

Released 2021-02-02

Major Changes:

  • Introduce python-telegram-bot-raw (#2324)
  • Explicit Signatures for Shortcuts (#2240)

New Features:

  • Add Missing Shortcuts to Message (#2330)
  • Rich Comparison for Bot (#2320)
  • Add run_async Parameter to ConversationHandler (#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 to Message.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

29 Nov 16:09
Compare
Choose a tag to compare

Version 13.1

Released 2020-11-29

Major Changes:

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 to v13.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

07 Oct 19:31
Compare
Choose a tag to compare

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 in ConversationHandler (#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 for Filters.update first (#2085)
  • Fix PicklePersistence.flush() with only bot_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)

v12.8

22 Jun 18:26
Compare
Choose a tag to compare

Version 12.8

Released 2020-06-22

Major Changes:

  • Remove Python 2 support (#1715)
  • Bot API 4.9 support (#1980)
  • IDs/Usernames of Filters.user and Filters.chat can now be updated (#1757)

Minor changes, CI improvements, doc fixes or bug fixes:

  • Update contribution guide and stale bot (#1937)
  • Remove NullHandlers (#1913)
  • Improve and expand examples (#1943, #1995, #1983, #1997)
  • Doc fixes (#1940, #1962)
  • Add User.send_poll() shortcut (#1968)
  • Ignore private attributes en TelegramObject.to_dict() (#1989)
  • Stabilize CI (#2000)