Commit graph

913 commits

Author SHA1 Message Date
Alex Root Junior
afa7ef9ebe Merge remote-tracking branch 'origin/dev-2.x' into dev-2.x 2018-07-02 21:01:42 +03:00
Alex Root Junior
0289f3a956 Resolve state object in FSMContext. 2018-07-02 21:01:11 +03:00
Alex Root Junior
69fa3021b9
Merge pull request #52 from kolayv/patch-4
disabled inspection for pycharm
2018-07-02 16:22:19 +03:00
Kolay
d5c7279e07
disabled inspection for pycharm 2018-07-02 01:05:51 +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
43dddcafe4 Oops. Wrong path. 2018-07-01 20:19:22 +03:00
Alex Root Junior
3e30f29aba Implement bot middleware. 2018-07-01 01:48:24 +03:00
Alex Root Junior
3d5b461409 Raise error when locale is not compiled. 2018-06-30 17:00:12 +03:00
Alex Root Junior
cdc51a6994 Implement i18n middleware and add example. 2018-06-30 03:59:34 +03:00
Alex Root Junior
69c126e027 Added tests for StatesGroup 2018-06-29 18:52:06 +03:00
Alex Root Junior
26b5cebe8b Rename MetaStatesGroup to StatesGroupMeta 2018-06-29 18:51:53 +03:00
Alex Root Junior
21c45193da Implement root group getter. 2018-06-29 00:36:59 +03:00
Alex Root Junior
10538b3199 Use 'at' instead of '*' for state group. 2018-06-29 00:35:48 +03:00
Alex Root Junior
58154915de Implement __contains__ method for states group 2018-06-28 20:02:03 +03:00
Alex Root Junior
8a8749dd02 Oops. Move name setter. 2018-06-28 19:47:35 +03:00
Alex Root Junior
8772518fa5 Oops. This method renamed. 2018-06-28 19:26:00 +03:00
Alex Root Junior
4f0a3c607f Allow to use '*' and None as state in State object. 2018-06-28 19:24:25 +03:00
Alex Root Junior
aa2468e19a Refactor states group 2018-06-28 19:22:30 +03:00
Alex Root Junior
051b92a716 More usable state groups. All child groups know about name of parent group. 2018-06-28 18:51:00 +03:00
Alex Root Junior
d8909ffe35 Allow to change states-group name by __group_name__ 2018-06-27 07:25:18 +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
b4d8ac2c0a Fix FSM storage and filter. 2018-06-27 01:13:53 +03:00
Alex Root Junior
3fb0a23db7 Are you kidding me? 2018-06-26 02:57:33 +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
74b56259e6 Small changes in FSM filter. 2018-06-25 17:13:42 +03:00
Alex Root Junior
21ba9288d0 Pass handler args from middlewares 2018-06-25 17:07:11 +03:00
Alex Root Junior
6832e92ca2 Message is too long. 2018-06-25 03:55:52 +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
1ca0be538b Experimental: Pass result of filter as arguments in handler. 2018-06-25 02:15:37 +03:00
Alex Root Junior
fc4e6ae69b Fix imports 2018-06-25 01:38:50 +03:00
Alex Root Junior
06fbe0d9cd Remove context util. 2018-06-25 01:31:57 +03:00
Alex Root Junior
5c1eee4fa9 Small changes in base filter. 2018-06-24 19:33:23 +03:00
Alex Root Junior
b56a070289 provide excluding event handlers in filters factory 2018-06-24 19:32:15 +03:00
Alex Root Junior
0656a4b1b8 Change version 2018-06-24 03:21:38 +03:00
Alex Root Junior
4fbddebe8f Merge branch 'filters-factory' into dev-2.x
# Conflicts:
#	aiogram/dispatcher/__init__.py
#	aiogram/dispatcher/filters.py
#	aiogram/dispatcher/handler.py
2018-06-24 03:17:01 +03:00
Alex Root Junior
2f4c63c9a3 Merge branch 'dev-1.x' into dev-2.x
# Conflicts:
#	aiogram/types/message.py
2018-06-23 17:44:09 +03:00
Alex Root Junior
8086a120c2 Try to use contextvars (partial) 2018-06-23 17:39:24 +03:00
Alex Root Junior
887e715f06
Merge pull request #50 from kolayv/patch-1
must be use round
2018-06-15 23:11:59 +03:00
Alex Root Junior
af72dcc13c
Merge pull request #49 from kolayv/patch-2
replaced int to datetime
2018-06-15 23:10:50 +03:00
Kolay
fee449a233
replaced int to datetime 2018-06-15 00:35:46 +03:00
Kolay
dd0fb98376
must be use round 2018-06-15 00:32:55 +03:00
Alex Root Junior
a139ebee6e
Merge pull request #48 from surik00/dev-1.x
Babel is not in requirements
2018-06-11 14:08:52 +03:00
Suren Khorenyan
3adba29c27 Fix return typing 2018-06-11 00:31:26 +03:00
Suren Khorenyan
7e601d1c8d Update docstring for the user class 2018-06-11 00:28:14 +03:00
Suren Khorenyan
b7a67cd522 Babel is in requirements now 2018-06-10 13:41:53 +03:00
Alex Root Junior
239728ccc6
Merge pull request #46 from surik00/dev-1.x
Improve check in ExceptionsFilter
2018-06-07 23:47:20 +03:00
Suren Khorenyan
99bb5a9fef Improve check in ExceptionsFilter 2018-06-07 23:38:23 +03:00