Skip to content

Instantly share code, notes, and snippets.

View yashoswalyo's full-sized avatar
💻
Working

Yash Oswal yashoswalyo

💻
Working
View GitHub Profile
@yashoswalyo
yashoswalyo / generate_user_session.py
Last active May 31, 2022 10:52
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())