some-fixes

This commit is contained in:
2023-09-11 21:40:24 +03:00
parent 071b7739f2
commit 4be2dc3a45
12 changed files with 9 additions and 58 deletions

View File

@@ -1,11 +1,11 @@
import redis
from profile import Profile as ProfileObj
from redis import Redis
from bot.storage.profile import Profile as ProfileObj
from bot.config import REDIS_URL
import json
# сохраняет сессии, айди кнопок в чатах для удаления и пересылаемые сообщения между перезагрузками
storage = redis.from_url(REDIS_URL)
storage = Redis.from_url(REDIS_URL)
# хранение необходимой информации о пользователях
Profile = ProfileObj(storage)