mirror-leech-telegram-bot/generate_string_session.py
anasty17 0f76a27d75 REFACTOR PART 1
fix #1585
fix #1587
close #1542
close #1537
close #1536
close #1526
close #1529

Signed-off-by: anasty17 <e.anastayyar@gmail.com>
2023-11-06 02:09:50 +02:00

13 lines
382 B
Python

try:
from pyrogram import Client
except Exception as e:
print(e)
print("\nInstall pyrogram: pip3 install pyrogram")
exit(1)
print("Required pyrogram V2 or greater.")
API_KEY = int(input("Enter API KEY: "))
API_HASH = input("Enter API HASH: ")
with Client(name="USS", api_id=API_KEY, api_hash=API_HASH, in_memory=True) as app:
print(app.export_session_string())