Skip to content

Commit

Permalink
Merge pull request #338 from Olegt0rr/docs/aiogram-close-container
Browse files Browse the repository at this point in the history
Docs: close container on aiogram dispatcher shutdown
  • Loading branch information
Tishka17 authored Jan 10, 2025
2 parents b405f67 + 7c922e2 commit 03c254e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/integrations/aiogram.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,10 @@ How to use
setup_dishka(container=container, router=dp, auto_inject=True)
7. *(optional)* Close container on dispatcher shutdown

.. code-block:: python
dispatcher.shutdown.register(container.close)

0 comments on commit 03c254e

Please sign in to comment.