Skip to content
This repository has been archived by the owner on Apr 29, 2023. It is now read-only.

fix :memory: error #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions StringSessionOlustur.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
loop.run_until_complete(session_olustur(API_ID, API_HASH))