mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-13 18:43:53 +00:00
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
This commit is contained in:
parent
566b7ff282
commit
4008a3114d
608 changed files with 12537 additions and 6427 deletions
22
docs2/dispatcher/index.rst
Normal file
22
docs2/dispatcher/index.rst
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
===============
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue