0.0.8-newage

This commit is contained in:
2023-04-23 19:54:58 +03:00
parent 297445fd50
commit 7b12a491e8
20 changed files with 572 additions and 321 deletions

View 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)