diff --git a/docs/migration_2_to_3.rst b/docs/migration_2_to_3.rst index c407ce8b..c21cd158 100644 --- a/docs/migration_2_to_3.rst +++ b/docs/migration_2_to_3.rst @@ -34,6 +34,9 @@ Dispatcher - Removed the **_handler** suffix from all event handler decorators and registering methods. (:ref:`Read more » `) - 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. + Filtering events ================ @@ -53,6 +56,7 @@ Filtering events the number of repetitions in the code and makes easily way to control for what each router will be used. + Bot API ======= @@ -68,6 +72,7 @@ Bot API so in most cases you should check that only error type (by status-code) without checking error message. (:ref:`Read more » `) + Middlewares =========== @@ -78,6 +83,7 @@ Middlewares - Added mechanism named **flags**, that helps to customize handler behavior in conjunction with middlewares. (:ref:`Read more » `) + Keyboard Markup =============== @@ -94,6 +100,7 @@ Callbacks data - Callback data factory now is strictly typed via `pydantic `_ models (:ref:`Read more » `) + Finite State machine ==================== @@ -101,12 +108,14 @@ Finite State machine - Added possibility to change FSM strategy, for example if you want to control state for each user in chat topics instead of user in chat you can specify it in the Dispatcher. + Sending Files ============= - From now you should wrap sending files into InputFile object before send instead of passing IO object directly to the API method. (:ref:`Read more » `) + Webhook =======