refactor(core): logging setup and session path
This commit is contained in:
+2
-2
@@ -46,7 +46,7 @@ class TelegramLinkExtractor:
|
||||
|
||||
|
||||
class TelegramStarsBot:
|
||||
SESSION_NAME = "stars_bot"
|
||||
SESSION_NAME = "storage/stars_bot"
|
||||
|
||||
def __init__(self, config: Config):
|
||||
self.config = config
|
||||
@@ -237,7 +237,7 @@ class TelegramStarsBot:
|
||||
await asyncio.sleep(self.config.check_interval)
|
||||
|
||||
async def start(self):
|
||||
is_first_login = not os.path.exists(f"storage/{self.SESSION_NAME}.session")
|
||||
is_first_login = not os.path.exists(f"{self.SESSION_NAME}.session")
|
||||
|
||||
if is_first_login:
|
||||
logger.info("Сессия Telegram не найдена. Запускаю процесс входа...")
|
||||
|
||||
Reference in New Issue
Block a user