aiogram/docs/dispatcher/index.rst
Alex Root Junior e356ede5de
Updated pre-commit hook (#681)
* Updated pre-commit config and reformat code

* Added changelog
2021-09-07 00:32:43 +03:00

26 lines
701 B
ReStructuredText

===============
Handling events
===============
*aiogram* imcludes Dispatcher mechanism.
Dispatcher is needed for handling incoming updates from Telegram.
With dispatcher you can do:
- Handle incoming updates;
- Filter incoming events before it will be processed by specific handler;
- Modify event and related data in middlewares;
- Separate bot functionality between different handlers, modules and packages
Dispatcher is also separated into two entities - Router and Dispatcher.
Dispatcher is subclass of router and should be always is root router.
.. toctree::
observer
router
dispatcher
class_based_handlers/index
filters/index
filters/magic_filters
middlewares