Added a few words about throttling

This commit is contained in:
Alex Root Junior 2023-07-29 23:06:37 +03:00
parent 56f0d9d220
commit 98a03faf77
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC

View file

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