From 07b40f675867716908ec13138a00eb17ad6e3292 Mon Sep 17 00:00:00 2001 From: berce <75228263+must4f@users.noreply.github.com> Date: Sun, 27 Nov 2022 16:37:56 +0300 Subject: [PATCH] fix :memory: error --- StringSessionOlustur.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/StringSessionOlustur.py b/StringSessionOlustur.py index 84a5aac..d59c80f 100644 --- a/StringSessionOlustur.py +++ b/StringSessionOlustur.py @@ -7,11 +7,11 @@ API_HASH = input("Telegram API HASH: ") async def session_olustur(api_id, api_hash): - async with Client(":memory:", api_id=api_id, api_hash=api_hash) as app: + async with Client("KekikBot", api_id=api_id, api_hash=api_hash,in_memory=True) as app: print('\n\n') print(await app.export_session_string()) print('\n') if __name__ == "__main__": loop = asyncio.get_event_loop() - loop.run_until_complete(session_olustur(API_ID, API_HASH)) \ No newline at end of file + loop.run_until_complete(session_olustur(API_ID, API_HASH))