Commit graph

905 commits

Author SHA1 Message Date
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
Alex Root Junior
93fe82d7f1
Merge pull request #45 from gurland/master
Convert tabs to spaces
2018-06-02 12:09:25 +03:00
gurland
545d470e02 Convert tabs to spaces 2018-06-02 00:54:23 +03:00
Alex Root Junior
c88ee7ed52 Bump dev version 2018-05-27 22:15:22 +03:00
Alex Root Junior
e8e108ecae Oops. Bump [2] 2018-05-27 21:55:56 +03:00
Alex Root Junior
fae989879e Merge remote-tracking branch 'origin/master' 2018-05-27 21:54:54 +03:00
Alex Root Junior
7f5cb03dc6 Bump version 2018-05-27 21:52:39 +03:00
Alex Root Junior
c167c559d8 Add new error types: ButtonURLInvalid, URLHostIsEmpty, StartParamInvalid, ButtonDataInvalid. 2018-05-27 21:49:52 +03:00
Alex Root Junior
dc3f1b1c82 Merge remote-tracking branch 'origin/dev-1.x' into dev-1.x 2018-05-27 21:42:38 +03:00