Prevent pyrogram from saving session to disk
This commit is contained in:
parent
8fc2748542
commit
92726434b8
6
main.py
6
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()
|
Loading…
Reference in New Issue