github python-telegram-bot/python-telegram-bot v20.0a1

latest releases: v21.1.1, v21.1, v21.0.1...
pre-release23 months ago

Version 20.0a1

Released 2022-06-09

This is the technical changelog for version 20.0a1. More elaborate release notes can be found in the news channel @pythontelegrambotchannel.

Major Changes:

  • Drop Support for ujson and instead BaseRequest.parse_json_payload (#3037, #3072)
  • Drop InputFile.is_image (#3053)
  • Drop Explicit Type conversions in __init__ s (#3056)
  • Handle List-Valued Attributes More Consistently (#3057)
  • Split {Command, Prefix}Handler And Make Attributes Immutable (#3045)
  • Align Behavior Of JobQueue.run_daily With cron (#3046)
  • Make PTB Specific Keyword-Only Arguments for PTB Specific in Bot methods (#3035)
  • Adjust Equality Comparisons to Fit Bot API 6.0 (#3033)
  • Add Tuple Based Version Info (#3030)- Improve Type Annotations for CallbackContext and Move Default Type Alias to ContextTypes.DEFAULT_TYPE (#3017, #3023)
  • Rename Job.context to Job.data (#3028)
  • Rename Handler to BaseHandler (#3019)

New Features:

  • Add Application.post_init (#3078)
  • Add Arguments chat/user_idtoCallbackContext` And Example On Custom Webhook Setups (#3059)
  • Add Convenience Property Message.id (#3077)
  • Add Example for WebApp (#3052)
  • Rename telegram.bot_api_version to telegram.__bot_api_version__ (#3030)

Bug Fixes:

  • Fix Non-Blocking Entry Point in ConversationHandler (#3068)
  • Escape Backslashes in escape_markdown (#3055)

Dependencies:

  • Update httpx requirement from ~=0.22.0 to ~=0.23.0 (#3069)
  • Update cachetools requirement from ~=5.0.0 to ~=5.2.0 (#3058, #3080)

Minor Changes, Documentation Improvements and CI:

  • Move Examples To Documentation (#3089)
  • Documentation Improvements and Update Dependencies (#3010, #3007, #3012, #3067, #3081, #3082)
  • Improve Some Unit Tests (#3026)
  • Update Code Quality dependencies (#3070, #3032,#2998, #2999)
  • Don't Set Signal Handlers On Windows By Default (#3065)
  • Split {Command, Prefix}Handler And Make Attributes Immutable (#3045)
  • Apply isort and Update pre-commit.ci Configuration (#3049)
  • Adjust pre-commit Settings for isort (#3043)
  • Add Version Check to Examples (#3036)
  • Use Collection Instead of List and Tuple (#3025)
  • Remove Client-Side Parameter Validation (#3024)
  • Don't Pass Default Values of Optional Parameters to Telegram (#2978)
  • Stabilize Application.run_* on Python 3.7 (#3009)
  • Ignore Code Style Commits in git blame (#3003)
  • Adjust Tests to Changed API Behavior (#3002)

Don't miss a new python-telegram-bot release

NewReleases is sending notifications on new releases.