Spaces:
Paused
Paused
Download generate_string_session.py from prad9036temp/leech: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/spaces/prad9036temp/leech/resolve/main/generate_string_session.py
- Command line
-
hf download hf://spaces/prad9036temp/leech/generate_string_session.py
-
curl -L -o generate_string_session.py https://huggingface.co/spaces/prad9036temp/leech/resolve/main/generate_string_session.py
382 Bytes
| 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()) | |