mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
Update a migration guide
This commit is contained in:
parent
42570fb747
commit
72ff444a2c
1 changed files with 4 additions and 0 deletions
|
|
@ -36,6 +36,10 @@ Dispatcher
|
|||
- Executor entirely removed, now you can use Dispatcher directly to start polling or webhook.
|
||||
- Throttling method is completely removed, now you can use middlewares to control
|
||||
the execution context and use any throttling mechanism you want.
|
||||
- Removed global context variables from the API types, Bot and Dispatcher object,
|
||||
from now if you want to get current bot instance inside handlers or filters you should
|
||||
accept the argument :code:`bot: Bot` and use it instead of :code:`Bot.get_current()`
|
||||
Inside middlewares it can be accessed via :code:`data["bot"]`.
|
||||
|
||||
|
||||
Filtering events
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue