diff --git a/aiogram/dispatcher/__init__.py b/aiogram/dispatcher/__init__.py index 3ccbd985..9e2bfbee 100644 --- a/aiogram/dispatcher/__init__.py +++ b/aiogram/dispatcher/__init__.py @@ -877,6 +877,7 @@ class Dispatcher: Get current state for user in chat as context .. code-block:: python3 + with dp.current_state(chat=message.chat.id, user=message.user.id) as state: pass diff --git a/docs/source/dispatcher.rst b/docs/source/dispatcher.rst index 225167a5..4cf301c6 100644 --- a/docs/source/dispatcher.rst +++ b/docs/source/dispatcher.rst @@ -9,4 +9,3 @@ With parts of this package you can manage bot updates. dispatcher/webhook dispatcher/filters dispatcher/handler - dispatcher/middlewares diff --git a/docs/source/dispatcher/middlewares.rst b/docs/source/dispatcher/middlewares.rst deleted file mode 100644 index dba0702f..00000000 --- a/docs/source/dispatcher/middlewares.rst +++ /dev/null @@ -1,6 +0,0 @@ -Middlewares ------------ - -.. automodule:: aiogram.dispatcher.middlewares - :members: - :show-inheritance: