Spaces:
Paused
Paused
feat: fix up session gen
Browse files
resources/session/ssgen.py
CHANGED
@@ -55,7 +55,7 @@ def get_api_id_and_hash():
|
|
55 |
def telethon_session():
|
56 |
try:
|
57 |
spinner("tele")
|
58 |
-
|
59 |
x = "\bFound an existing installation of Telethon...\nSuccessfully Imported.\n\n"
|
60 |
except ImportError:
|
61 |
print("Installing Telethon...")
|
@@ -122,6 +122,8 @@ def pyro_session():
|
|
122 |
print("Installing Pyrogram...")
|
123 |
os.system("pip install pyrogram tgcrypto")
|
124 |
x = "\bDone. Installed and imported Pyrogram."
|
|
|
|
|
125 |
clear_screen()
|
126 |
print(ULTROID)
|
127 |
print(x)
|
|
|
55 |
def telethon_session():
|
56 |
try:
|
57 |
spinner("tele")
|
58 |
+
import telethon
|
59 |
x = "\bFound an existing installation of Telethon...\nSuccessfully Imported.\n\n"
|
60 |
except ImportError:
|
61 |
print("Installing Telethon...")
|
|
|
122 |
print("Installing Pyrogram...")
|
123 |
os.system("pip install pyrogram tgcrypto")
|
124 |
x = "\bDone. Installed and imported Pyrogram."
|
125 |
+
from pyrogram import Client
|
126 |
+
|
127 |
clear_screen()
|
128 |
print(ULTROID)
|
129 |
print(x)
|