mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-14 02:52:12 +00:00
Add base documentation of Dispatcher (not ready, not fully documented)
This commit is contained in:
parent
93a330c1f2
commit
9adc2f91bd
9 changed files with 285 additions and 1 deletions
13
docs/dispatcher/index.md
Normal file
13
docs/dispatcher/index.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Overview
|
||||
|
||||
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
|
||||
|
||||
Manually dispatcher has the router role and can include another routers.
|
||||
|
||||
Dispatcher is also separated into two entities - Router and Dispatcher.
|
||||
Dispatcher is subclass of router and should be always is root router.
|
||||
Loading…
Add table
Add a link
Reference in a new issue