mirror of
https://github.com/anasty17/mirror-leech-telegram-bot.git
synced 2025-01-05 10:36:52 +08:00
0f76a27d75
fix #1585 fix #1587 close #1542 close #1537 close #1536 close #1526 close #1529 Signed-off-by: anasty17 <e.anastayyar@gmail.com>
13 lines
382 B
Python
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())
|