mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-15 11:25:54 +00:00
Fix MemoryStorage data getter.
This commit is contained in:
parent
2f1a57a5bc
commit
7cec15f572
1 changed files with 3 additions and 1 deletions
|
|
@ -286,7 +286,9 @@ class MemoryStorage(BaseStorage):
|
|||
data: typing.Dict = None, **kwargs):
|
||||
chat, user = self.check_address(chat=chat, user=user)
|
||||
user = self._get_user(chat, user)
|
||||
user['data'].update(data, kwargs)
|
||||
if data is None:
|
||||
data = []
|
||||
user['data'].update(data, **kwargs)
|
||||
|
||||
async def set_state(self, *,
|
||||
chat: typing.Union[str, int, None] = None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue