This commit is contained in:
mihalin 2022-01-27 04:12:14 +03:00
parent bea77807af
commit ea5249d1b8

View File

@ -1,6 +1,7 @@
from dotenv import load_dotenv from dotenv import load_dotenv
from abc import ABC from abc import ABC
import os, logging import os
import logging
from olgram.utils.crypto import Cryptor from olgram.utils.crypto import Cryptor
from functools import lru_cache from functools import lru_cache
@ -85,6 +86,7 @@ class ServerSettings(AbstractSettings):
logging.basicConfig(level=os.environ.get("LOGLEVEL", "INFO")) logging.basicConfig(level=os.environ.get("LOGLEVEL", "INFO"))
class BotSettings(AbstractSettings): class BotSettings(AbstractSettings):
@classmethod @classmethod
def token(cls) -> str: def token(cls) -> str: