Skip to content

Commit

Permalink
chore: update sessiongen to work with pyrogram 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xditya authored Dec 7, 2022
1 parent a86ed7d commit fbfde04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/session/ssgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def pyro_session():
# generate a session
API_ID, API_HASH = get_api_id_and_hash()
print("Enter phone number when asked.\n\n")
with Client(":memory:", api_id=API_ID, api_hash=API_HASH) as pyro:
with Client(name="ultroid", api_id=API_ID, api_hash=API_HASH, in_memory=True) as pyro:
ss = pyro.export_session_string()
pyro.send_message(
"me",
Expand Down

0 comments on commit fbfde04

Please sign in to comment.