Commit graph

20 commits

Author SHA1 Message Date
Alex Root Junior
4f2cc75951
Global filters for router (#644)
* Bump version

* Added more comments

* Cover registering global filters

* Reformat code

* Add more tests

* Rework event propagation to routers mechanism. Fixed compatibility with Python 3.10 syntax (match keyword)

* Fixed tests

* Fixed coverage

Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
2021-07-31 23:34:09 +03:00
evgfilim1
4599913e18
Fix not all args are passed to handler function invocation (#633) 2021-07-18 14:10:51 +03:00
Alex Root Junior
83d6ab48c5
Backport and improvements (#601)
* Backport RedisStorage, deep-linking
* Allow prereleases for aioredis
* Bump dependencies
* Correctly skip Redis tests on Windows
* Reformat tests code and bump Makefile
2021-06-15 01:45:31 +03:00
Alex Root Junior
0e72d8e65b
[3.0] Bot API 5.1 + FSM + Utils (#525)
* Regenerate corresponding to Bot API 5.1

* Added base of FSM. Markup constructor and small refactoring

* Fix dependencies

* Fix mypy windows error

* Move StatesGroup.get_root() from meta to class

* Fixed chat and user constraints

* Update pipeline

* Remove docs pipeline

* Added GLOBAL_USER FSM strategy

* Reformat code

* Fixed Dispatcher._process_update

* Bump Bot API 5.2. Added integration with MagicFilter

* Coverage
2021-05-11 23:04:32 +03:00
Alex Root Junior
4008a3114d
Upgrade architecture + 5.0 Bot API (#469)
Upgrade architecture + 5.0 Bot API (#469)
* Moved `methods`, `types` and `client` to root package
* Removed update handler from routers to dispatcher
* Reworked events propagation mechanism to handlers
* Reworked inner middlewares logic (very small change)
* Updated to Bot API 5.0
* Initial migration from MkDocs to Sphinx + config for readthedocs
2021-01-26 21:20:52 +02:00
Alex Root Junior
7f26ec9935 Implement new middlewares 2020-05-26 00:23:35 +03:00
mpa
4124770b0e refactor(handler): rename observers
Rename observers but with backward compatibility, relevant documentation
2020-05-10 03:02:31 +04:00
Alex Root Junior
9907eada32 Refactor EventObserver & TelegramEventObserver 2020-01-13 21:17:28 +02:00
jrootjunior
ad17143d3f Pydoc observer 2019-12-13 12:19:39 +02:00
Alex Root Junior
6ee05fb901 Add tests for content types 2019-12-11 21:31:31 +02:00
Alex Root Junior
8df6c345c3 Fix tests 2019-12-11 20:50:59 +02:00
jrootjunior
647d03b2d4 Remove filters from class based handlers 2019-12-11 16:45:10 +02:00
Alex Root Junior
b82a1a6fb0 Add prototype of class-based handlers 2019-12-03 00:03:15 +02:00
Alex Root Junior
40b6a61e70 Add text filter and mechanism for registering builtin filters 2019-11-29 23:16:11 +02:00
Alex Root Junior
23dbd88487 Full coverage of observers 2019-11-25 23:21:01 +02:00
Alex Root Junior
a1e840af89 Remove unused imports 2019-11-24 22:54:37 +02:00
Alex Root Junior
8204b6af52 Partially add tests for telegram event observer 2019-11-24 22:31:53 +02:00
Alex Root Junior
55f6c29ba6 Remove awaitable checks from TestObserver 2019-11-24 01:07:43 +02:00
Alex Root Junior
fd6e78ddf7 Add tests for EventObserver 2019-11-24 01:03:47 +02:00
Alex Root Junior
caa7eeab41 Add tests for handler 2019-11-24 00:17:21 +02:00