Skip to content

Instantly share code, notes, and snippets.

@yashoswalyo
Last active May 31, 2022 10:52
Show Gist options
  • Save yashoswalyo/3d6b7843cb282deebf6bd19e4cf35946 to your computer and use it in GitHub Desktop.
Save yashoswalyo/3d6b7843cb282deebf6bd19e4cf35946 to your computer and use it in GitHub Desktop.
A program based on pyrogram to create user session, download the file and run it with python
from pyrogram import Client
app = Client(
name='my-user-session',
api_hash=input("Enter Api Hash: "),
api_id=input("Enter Api id: ")
)
with app:
print(app.export_session_string())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment