Commit graph

38 commits

Author SHA1 Message Date
birdi
21127c3a7b Replace positional args with kwargs 2019-08-24 16:23:17 +03:00
birdi
6de53dd476 Fix stacklevel arguments in renamed arguments in the dispatcher 2019-08-24 16:14:49 +03:00
Alex Root Junior
3d4bdcc498 Fix Dispatcher.throttle(...) and rename user & chat arguments to user_id & chat_id 2019-08-23 23:29:59 +03:00
birdi
ed0d4796e7 Merge branch 'dev-2.x' into add-new-ways-throttle
# Conflicts:
#	examples/throtling_example.py
2019-08-15 17:06:10 +03:00
Alex Root Junior
23ceb1445e
Merge branch 'dev-2.x' into dev-2.x 2019-08-15 16:52:51 +03:00
Suren Khorenyan
5846d3a6c2 More minor refactoring 2019-08-10 18:41:29 +03:00
Suren Khorenyan
ad7238fda8 Some refactor 2019-08-10 00:08:11 +03:00
Arslan 'Ars2014' Sakhapov
c0e60f8706 Fix issues and rework AdminFilter 2019-08-08 20:53:52 +05:00
Arslan 'Ars2014' Sakhapov
bd032f066e Added AdminFilter and example of its usage 2019-08-08 19:12:49 +05:00
birdi
4a52f97a68 Fix throttled docs 2019-08-05 13:21:50 +03:00
birdi
4d00b7c502 refactor dp.throttled 2019-08-05 11:32:28 +03:00
birdi
288c7099b0 add support of no argument in dp.throttled 2019-08-03 18:39:54 +03:00
birdi
769be286f7 Add support of None argument in dp.throttled 2019-08-03 15:27:20 +03:00
birdi
828f6f2fbf add throttled decorator.
see #166 for more info
2019-08-02 20:50:40 +03:00
birdi
5c72bb2b58 Add IdFilter 2019-07-22 04:15:22 +03:00
Gabben
40b9b80ce9 Fix builtin filters
Add inline_query_handlers to Text and Regexp bind

Fix type hints
2019-07-16 19:48:59 +05:00
Alex RootJunior
7236541723 Remove func filter 2019-04-18 21:30:02 +03:00
Alex RootJunior
beca19b5e2 Implements opportunity to change request timeouts 2019-04-17 23:24:23 +03:00
Alex RootJunior
e2e2d9c9fe Implemented polls [From test API] 2019-04-11 00:32:46 +03:00
Oleg A
3a38125619 Check bot instance on Dispatcher __init__ 2019-02-25 12:34:26 +03:00
Oleg A
660aba50ee faster skip updates by negative offset 2018-12-05 01:01:13 +03:00
Alex Root Junior
21908739e9 Backward compatibility - implemented 'func' filter 2018-10-28 17:42:21 +02:00
Alex Root Junior
39c333251f Rewrite contextvar usage. Implemented ContextInstanceMixin and DataMixin 2018-10-20 15:55:57 +03:00
Alex Root Junior
cbcab54263 Remove unused constants from dispatcher module 2018-09-28 03:45:02 +03:00
Alex Root Junior
0c2a838002 Move registering of default filters 2018-09-28 03:43:55 +03:00
Alex Root Junior
0185af25c1 Implemented hashtag/cashtag filter 2018-09-28 03:40:10 +03:00
Alex Root Junior
7fe12ba3d2 Implement slow-mode polling (If need to save ordering of updates) 2018-09-13 22:15:00 +03:00
Alex Root Junior
23fba99d93 Remove dispatcher argument from errors handler 2018-09-06 20:10:31 +03:00
Alex Root Junior
b647eb476a Bind text handler. 2018-07-13 23:59:17 +03:00
Alex Root Junior
f957883082 Refactor filters. 2018-07-13 22:58:47 +03:00
Alex Root Junior
cf8df06f63 Fix current state context getter for updates where chat is not presented. 2018-07-02 00:36:12 +03:00
Alex Root Junior
ac50db075b Improve FSM. 2018-06-27 06:50:08 +03:00
Alex Root Junior
fe6ae4863a Changed the order of filters and optimize creation of default filters. 2018-06-27 01:46:35 +03:00
Alex Root Junior
759055ed66 The introduction of a new filter factory into the registration of handlers 2018-06-25 18:05:32 +03:00
Alex Root Junior
52304bb51c change imports and exclude state filter for errors handlers. 2018-06-25 17:26:49 +03:00
Alex Root Junior
95ba0ae571 Fix state filter 2018-06-25 03:44:50 +03:00
Alex Root Junior
b4ecc421e4 Default filters 2018-06-25 03:19:58 +03:00
Alex Root Junior
06fbe0d9cd Remove context util. 2018-06-25 01:31:57 +03:00