Spaces:
Paused
Paused
chore: update sessiongen to work with pyrogram 2.0
Browse files
resources/session/ssgen.py
CHANGED
@@ -129,7 +129,7 @@ def pyro_session():
|
|
129 |
# generate a session
|
130 |
API_ID, API_HASH = get_api_id_and_hash()
|
131 |
print("Enter phone number when asked.\n\n")
|
132 |
-
with Client("
|
133 |
ss = pyro.export_session_string()
|
134 |
pyro.send_message(
|
135 |
"me",
|
|
|
129 |
# generate a session
|
130 |
API_ID, API_HASH = get_api_id_and_hash()
|
131 |
print("Enter phone number when asked.\n\n")
|
132 |
+
with Client(name="ultroid", api_id=API_ID, api_hash=API_HASH, in_memory=True) as pyro:
|
133 |
ss = pyro.export_session_string()
|
134 |
pyro.send_message(
|
135 |
"me",
|