0.0.8-newage
This commit is contained in:
9
tgbot/storage/__init__.py
Normal file
9
tgbot/storage/__init__.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import redis
|
||||
from tgbot.storage.profile import Profile as ProfileObj
|
||||
from tgbot.config import REDIS_URL
|
||||
|
||||
# сохраняет сессии и пересылаемые сообщения между перезагрузками
|
||||
storage = redis.from_url(REDIS_URL)
|
||||
|
||||
# хранение необходимой информации о пользователях
|
||||
Profile = ProfileObj(storage)
|
Reference in New Issue
Block a user