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

@ -35,7 +35,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
"""
result = await self.redis.get(self.prefix+str(key))
if result: return json.loads(result)
@ -45,7 +45,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
"""
await self.redis.set(self.prefix+str(key), json.dumps(value))
@ -55,7 +55,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
"""
await self.redis.delete(self.prefix+str(key))
return True