Prevent pyrogram from saving session to disk

This commit is contained in:
neko 2025-01-28 08:49:42 +05:00
parent 8fc2748542
commit 92726434b8
1 changed files with 3 additions and 3 deletions

View File

@ -6,12 +6,12 @@ from pathlib import Path
import shutil import shutil
import time import time
import config # import settings from config.py import config # Import settings from config.py
api_id = config.API_ID api_id = config.API_ID
api_hash = config.API_HASH api_hash = config.API_HASH
bot_token = config.BOT_TOKEN bot_token = config.BOT_TOKEN
app = Client( app = Client(
"2pdf", "2pdf", in_memory=True,
api_id=api_id, api_hash=api_hash, api_id=api_id, api_hash=api_hash,
bot_token=bot_token bot_token=bot_token
) )
@ -98,5 +98,5 @@ async def startResponder(client, message):
await message.reply(startMessage, reply_to_message_id=message.id) await message.reply(startMessage, reply_to_message_id=message.id)
unoStart() unoStart() # Attempt to start unoserver
app.run() app.run()