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

Merge pull request #1688 from ananthb/patch-1

Import aioredis from redis module too
This commit is contained in:
_run
2022-08-30 12:28:18 +04:00
committed by GitHub

View File

@@ -5,8 +5,11 @@ import json
redis_installed = True
try:
import aioredis
except:
redis_installed = False
except ImportError:
try:
from redis import asyncio as aioredis
except ImportError:
redis_installed = False
class StateRedisStorage(StateStorageBase):