1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Poll type parameter parse fix

Plus some typo
This commit is contained in:
Badiboy
2022-05-15 00:59:35 +03:00
parent 7e68721475
commit 91b665ea94
4 changed files with 18 additions and 13 deletions

View File

@ -28,7 +28,7 @@ class StateRedisStorage(StateStorageBase):
"""
Function to get record from database.
It has nothing to do with states.
Made for backend compatibility
Made for backward compatibility
"""
connection = Redis(connection_pool=self.redis)
result = connection.get(self.prefix+str(key))
@ -40,7 +40,7 @@ class StateRedisStorage(StateStorageBase):
"""
Function to set record to database.
It has nothing to do with states.
Made for backend compatibility
Made for backward compatibility
"""
connection = Redis(connection_pool=self.redis)
connection.set(self.prefix+str(key), json.dumps(value))
@ -51,7 +51,7 @@ class StateRedisStorage(StateStorageBase):
"""
Function to delete record from database.
It has nothing to do with states.
Made for backend compatibility
Made for backward compatibility
"""
connection = Redis(connection_pool=self.redis)
connection.delete(self.prefix+str(key))