diff --git a/telebot/asyncio_storage/redis_storage.py b/telebot/asyncio_storage/redis_storage.py index 92842ab..f9c3aea 100644 --- a/telebot/asyncio_storage/redis_storage.py +++ b/telebot/asyncio_storage/redis_storage.py @@ -170,6 +170,6 @@ class StateRedisStorage(StateStorageBase): user_id = str(user_id) if response: if user_id in response: - response[user_id]['data'] = dict(data, **response[user_id]['data']) + response[user_id]['data'] = data await self.set_record(chat_id, response) return True diff --git a/telebot/storage/redis_storage.py b/telebot/storage/redis_storage.py index a104948..453d6ae 100644 --- a/telebot/storage/redis_storage.py +++ b/telebot/storage/redis_storage.py @@ -174,7 +174,7 @@ class StateRedisStorage(StateStorageBase): user_id = str(user_id) if response: if user_id in response: - response[user_id]['data'] = dict(data, **response[user_id]['data']) + response[user_id]['data'] = data self.set_record(chat_id, response) return True