diff options
author | evgfilim1 | 2019-08-19 12:42:26 +0500 |
---|---|---|
committer | evgfilim1 | 2019-08-19 12:42:26 +0500 |
commit | be58ae633773779b83d07c50cec83a7158d576b7 (patch) | |
tree | 024225acfd685c81696c439a6a8dd65a3bffcfbd | |
parent | 9ebd9fbff730ca6a46ad879f6a8cf90a85eeaf7c (diff) | |
download | aur-be58ae633773779b83d07c50cec83a7158d576b7.tar.gz |
Updated to version 1:12.0.0b1.r23
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | CHANGES.rst | 188 | ||||
-rw-r--r-- | PKGBUILD | 2 |
3 files changed, 162 insertions, 30 deletions
@@ -1,6 +1,6 @@ pkgbase = python-telegram-bot-git pkgdesc = A Python wrapper around the Telegram Bot API - pkgver = 11.1.0.r39.9ece7fdb + pkgver = 12.0.0b1.r23.24546bda pkgrel = 1 epoch = 1 url = https://github.com/python-telegram-bot/python-telegram-bot diff --git a/CHANGES.rst b/CHANGES.rst index 69b908a8c44a..ba4ac1d27e8e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,9 +1,127 @@ -======= -Changes -======= - -**2018-09-01** -*Released 11.1.0* +========= +Changelog +========= + +Version 12.0.0b1 +================ +*Released 2019-02-13* + +First beta release ever. +It has been so long since last release that we would like to test the impact before a final release. + +*We do NOT recommend using this beta release in production.* + +**Major changes:** + +- Context based callbacks +- Persistence +- PrefixHandler added (Handler overhaul) +- Deprecation of RegexHandler and edited_messages, channel_post, etc. arguments (Filter overhaul) +- Various ConversationHandler changes and fixes + +**See the wiki page at https://git.io/fxJuV for a detailed guide on how to migrate from version 11 to version 12.** + +Context based callbacks (`#1100`_) +---------------------------------- + +- Use of ``pass_`` in handlers is deprecated. +- Instead use ``use_context=True`` on ``Updater`` or ``Dispatcher`` and change callback from (bot, update, others...) to (update, context). +- This also applies to error handlers ``Dispatcher.add_error_handler`` and JobQueue jobs (change (bot, job) to (context) here). +- For users with custom handlers subclassing Handler, this is mostly backwards compatible, but to use the new context based callbacks you need to implement the new collect_additional_context method. +- Passing bot to ``JobQueue.__init__`` is deprecated. Use JobQueue.set_dispatcher with a dispatcher instead. +- Dispatcher makes sure to use a single `CallbackContext` for a entire update. This means that if an update is handled by multiple handlers (by using the group argument), you can add custom arguments to the `CallbackContext` in a lower group handler and use it in higher group handler. NOTE: Never use with @run_async, see docs for more info. (`#1283`_) +- If you have custom handlers they will need to be updated to support the changes in this release. +- Update all examples to use context based callbacks. + +Persistence (`#1017`_) +---------------------- + +- Added PicklePersistence and DictPersistence for adding persistence to your bots. +- BasePersistence can be subclassed for all your persistence needs. +- Add a new example that shows a persistent ConversationHandler bot + +Handler overhaul (`#1114`_) +--------------------------- + +- CommandHandler now only triggers on actual commands as defined by telegram servers (everything that the clients mark as a tabable link). +- PrefixHandler can be used if you need to trigger on prefixes (like all messages starting with a "/" (old CommandHandler behaviour) or even custom prefixes like "#" or "!"). + +Filter overhaul (`#1221`_) +-------------------------- + +- RegexHandler is deprecated and should be replaced with a MessageHandler with a regex filter. +- Use update filters to filter update types instead of arguments (message_updates, channel_post_updates and edited_updates) on the handlers. +- Completely remove allow_edited argument - it has been deprecated for a while. +- data_filters now exist which allows filters that return data into the callback function. This is how the regex filter is implemented. +- All this means that it no longer possible to use a list of filters in a handler. Use bitwise operators instead! + +ConversationHandler +------------------- + +- Remove ``run_async_timeout`` and ``timed_out_behavior`` arguments (`#1344`_) +- Replace with ``WAITING`` constant and behavior from states (`#1344`_) +- Only emit one warning for multiple CallbackQueryHandlers in a ConversationHandler (`#1319`_) +- Use warnings.warn for ConversationHandler warnings (`#1343`_) +- Fix unresolvable promises (`#1270`_) + +Bug fixes & improvements +------------------------ + +- Handlers should be faster due to deduped logic. +- Avoid compiling compiled regex in regex filter. (`#1314`_) +- Add missing ``left_chat_member`` to Message.MESSAGE_TYPES (`#1336`_) +- Make custom timeouts actually work properly (`#1330`_) +- Add convenience classmethods (from_button, from_row and from_column) to InlineKeyboardMarkup +- Small typo fix in setup.py (`#1306`_) +- Add Conflict error (HTTP error code 409) (`#1154`_) +- Change MAX_CAPTION_LENGTH to 1024 (`#1262`_) +- Remove some unnecessary clauses (`#1247`_, `#1239`_) +- Allow filenames without dots in them when sending files (`#1228`_) +- Fix uploading files with unicode filenames (`#1214`_) +- Replace http.server with Tornado (`#1191`_) +- Allow SOCKSConnection to parse username and password from URL (`#1211`_) +- Fix for arguments in passport/data.py (`#1213`_) +- Improve message entity parsing by adding text_mention (`#1206`_) + +.. _`#1100`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1100 +.. _`#1283`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1283 +.. _`#1017`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1017 +.. _`#1325`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1325 +.. _`#1301`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1301 +.. _`#1312`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1312 +.. _`#1324`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1324 +.. _`#1114`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1114 +.. _`#1221`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1221 +.. _`#1314`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1314 +.. _`#1336`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1336 +.. _`#1330`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1330 +.. _`#1306`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1306 +.. _`#1154`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1154 +.. _`#1262`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1262 +.. _`#1247`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1247 +.. _`#1239`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1239 +.. _`#1228`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1228 +.. _`#1214`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1214 +.. _`#1191`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1191 +.. _`#1211`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1211 +.. _`#1213`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1213 +.. _`#1206`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1206 +.. _`#1344`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1344 +.. _`#1319`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1319 +.. _`#1343`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1343 +.. _`#1270`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1270 + +Internal improvements +--------------------- + +- Finally fix our CI builds mostly (too many commits and PRs to list) +- Use multiple bots for CI to improve testing times significantly. +- Allow pypy to fail in CI. +- Remove the last CamelCase CheckUpdate methods from the handlers we missed earlier. + +Version 11.1.0 +============== +*Released 2018-09-01* Fixes and updates for Telegram Passport: (`#1198`_) @@ -17,8 +135,9 @@ Fixes and updates for Telegram Passport: (`#1198`_) .. _`#1198`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1198 -**2018-08-29** -*Released 11.0.0* +Version 11.0.0 +============== +*Released 2018-08-29* Fully support Bot API version 4.0! (also some bugfixes :)) @@ -73,8 +192,9 @@ Non Bot API 4.0 changes: .. _`#1184`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1184 .. _`our telegram passport wiki page`: https://git.io/fAvYd -**2018-05-02** -*Released 10.1.0* +Version 10.1.0 +============== +*Released 2018-05-02* Fixes changing previous behaviour: @@ -100,8 +220,9 @@ Fixes: .. _`#1096`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1096 .. _`#1099`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1099 -**2018-04-17** -*Released 10.0.2* +Version 10.0.2 +============== +*Released 2018-04-17* Important fix: @@ -132,8 +253,9 @@ Fixes: .. _`#1076`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1076 .. _`#1071`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1071 -**2018-03-05** -*Released 10.0.1* +Version 10.0.1 +============== +*Released 2018-03-05* Fixes: @@ -143,8 +265,9 @@ Fixes: .. _`#1032`: https://github.com/python-telegram-bot/python-telegram-bot/pull/826 .. _`#912`: https://github.com/python-telegram-bot/python-telegram-bot/pull/826 -**2018-03-02** -*Released 10.0.0* +Version 10.0.0 +============== +*Released 2018-03-02* Non backward compatabile changes and changed defaults @@ -209,8 +332,9 @@ Changes .. _`#1019`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1019 .. _`#1020`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1020 -**2017-12-08** -*Released 9.0.0* +Version 9.0.0 +============= +*Released 2017-12-08* Breaking changes (possibly) @@ -235,15 +359,17 @@ Changes .. _`#694`: https://github.com/python-telegram-bot/python-telegram-bot/pull/694 .. _`#870`: https://github.com/python-telegram-bot/python-telegram-bot/pull/870 -**2017-10-15** -*Released 8.1.1* +Version 8.1.1 +============= +*Released 2017-10-15* - Fix Commandhandler crashing on single character messages (PR `#873`_). .. _`#873`: https://github.com/python-telegram-bot/python-telegram-bot/pull/871 -**2017-10-14** -*Released 8.1.0* +Version 8.1.0 +============= +*Released 2017-10-14* New features - Support Bot API 3.4 (PR `#865`_). @@ -260,8 +386,9 @@ Changes .. _`#865`: https://github.com/python-telegram-bot/python-telegram-bot/pull/865 .. _`#869`: https://github.com/python-telegram-bot/python-telegram-bot/pull/869 -**2017-09-01** -*Released 8.0.0* +Version 8.0.0 +============= +*Released 2017-09-01* New features @@ -302,14 +429,16 @@ Changes .. _`#793`: https://github.com/python-telegram-bot/python-telegram-bot/pull/793 .. _`#810`: https://github.com/python-telegram-bot/python-telegram-bot/pull/810 -**2017-07-28** -*Released 7.0.1* +Version 7.0.1 +=============== +*Released 2017-07-28* - Fix TypeError exception in RegexHandler (PR #751). - Small documentation fix (PR #749). -**2017-07-25** -*Released 7.0.0* +Version 7.0.0 +============= +*Released 2017-07-25* - Fully support Bot API 3.2. - New filters for handling messages from specific chat/user id (PR #677). @@ -327,6 +456,9 @@ Changes - Improved documentation. - Improved unitests. +Pre-version 7.0 +=============== + **2017-06-18** *Released 6.1.0* @@ -1,7 +1,7 @@ # Maintainer: Evgeniy Filimonov <evgfilim1@gmail.com> pkgname=('python-telegram-bot-git') epoch=1 -pkgver=11.1.0.r39.9ece7fdb +pkgver=12.0.0b1.r23.24546bda pkgrel=1 pkgdesc="A Python wrapper around the Telegram Bot API" arch=('any') |