From 351d021e01351394df6b4754becdd5218466aaee Mon Sep 17 00:00:00 2001 From: _run Date: Mon, 3 Apr 2023 01:00:29 +0500 Subject: [PATCH 1/2] Update redis_storage.py --- telebot/storage/redis_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 7bf87a306a097f903b7785fe0281009ba9e2aaa4 Mon Sep 17 00:00:00 2001 From: _run Date: Mon, 3 Apr 2023 01:00:48 +0500 Subject: [PATCH 2/2] Update redis_storage.py --- telebot/asyncio_storage/redis_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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