added deprecation warning to mongo storage

This commit is contained in:
kievzenit 2025-07-21 19:19:16 +03:00
parent ee369bb7ee
commit 5e6aada8e8

View file

@ -15,6 +15,12 @@ from aiogram.fsm.storage.base import (
class MongoStorage(BaseStorage):
"""
.. warning::
DEPRECATED: Use :class:`PyMongoStorage` instead.
This class will be removed in future versions.
MongoDB storage required :code:`motor` package installed (:code:`pip install motor`)
"""