python-telegram-bot/telegram/ext
Eldinnie 2c5eade4f0 Update Filters, CommandHandler and MessageHandler (#1221)
* update_filter attribute on filters

Makes it possible to have filters work on an update instead of message, while keeping behavior for current filters

* add update_type filter

* Messagehandler rework

- remove allow_edited (deprecated for a while)
- set deprecated defaults to None
- Raise deprecation warning when they're used
- add sensible defaults for filters.
- rework tests

* Commandhandler rework

* Remove deprecation test from new handler

* Some tweaks per CR

- rename update_types -> updates
- added some clarification to docstrings

* run webhook set test only on 3.6 on appveyor

* update_filter attribute on filters

Makes it possible to have filters work on an update instead of message, while keeping behavior for current filters

* add update_type filter

* Messagehandler rework

- remove allow_edited (deprecated for a while)
- set deprecated defaults to None
- Raise deprecation warning when they're used
- add sensible defaults for filters.
- rework tests

* Commandhandler rework

* Remove deprecation test from new handler

* Some tweaks per CR

- rename update_types -> updates
- added some clarification to docstrings

* run webhook set test only on 3.6 on appveyor

* Changes per CR

* Update travis to build v12

* small doc update

* try to make ci build version branches

* doc for BaseFilter

* Modify regexfilter and mergedfilter

Now returns a list of match objects for every regexfilter

* Change callbackcontext (+ docs)

* integrate in CommandHandler and PrefixHandler

* integrate in MessageHandler

* cbqhandler, iqhandler and srhandler

* make regexhandler a shell over MessageHandler

And raise deprecationWarning on creation

* clean up code and add some comments

* Rework based on internal group feedback

- use data_filter instead of regex_filter on BaseFilter
- have these filters return a dict that is then updated onto CallbackContext instead of using a list is before
- Add a .match property on CallbackContext that returns .matches[0] or None

* Fix and add test for callbackcontext.match

* Lots of documentation fixes and improvements [ci skip]
2019-02-13 12:07:25 +01:00
..
__init__.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
basepersistence.py Persistence (#1017) 2018-09-20 22:50:40 +02:00
callbackcontext.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
callbackqueryhandler.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
choseninlineresulthandler.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
commandhandler.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
conversationhandler.py Remove message decorator to fix default timeouts. (#1156) 2019-02-13 11:37:13 +01:00
dictpersistence.py Persistence (#1017) 2018-09-20 22:50:40 +02:00
dispatcher.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
filters.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
handler.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
inlinequeryhandler.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
jobqueue.py Merge branch 'master' into V12 2019-02-09 18:45:00 +01:00
messagehandler.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
messagequeue.py Mistake in MessageQueue.__call__'s docstring (#1249) 2018-10-08 15:36:59 +02:00
picklepersistence.py Persistence (#1017) 2018-09-20 22:50:40 +02:00
precheckoutqueryhandler.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
regexhandler.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
shippingqueryhandler.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
stringcommandhandler.py Revert "Revert "Context based callbacks (#1100)"" 2018-09-21 08:57:01 +02:00
stringregexhandler.py Update Filters, CommandHandler and MessageHandler (#1221) 2019-02-13 12:07:25 +01:00
typehandler.py Revert "Revert "Context based callbacks (#1100)"" 2018-09-21 08:57:01 +02:00
updater.py Revert "Revert "Context based callbacks (#1100)"" 2018-09-21 08:57:01 +02:00