From 92726434b82de900df367e2d4f29ae1712f254a9 Mon Sep 17 00:00:00 2001 From: neko Date: Tue, 28 Jan 2025 08:49:42 +0500 Subject: [PATCH] Prevent pyrogram from saving session to disk --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 6be5203..d2e5525 100644 --- a/main.py +++ b/main.py @@ -6,12 +6,12 @@ from pathlib import Path import shutil import time -import config # import settings from config.py +import config # Import settings from config.py api_id = config.API_ID api_hash = config.API_HASH bot_token = config.BOT_TOKEN app = Client( - "2pdf", + "2pdf", in_memory=True, api_id=api_id, api_hash=api_hash, bot_token=bot_token ) @@ -98,5 +98,5 @@ async def startResponder(client, message): await message.reply(startMessage, reply_to_message_id=message.id) -unoStart() +unoStart() # Attempt to start unoserver app.run() \ No newline at end of file