Update a migration guide

This commit is contained in:
Alex Root Junior 2023-07-30 00:07:42 +03:00
parent 42570fb747
commit 72ff444a2c
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC

View file

@ -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