Files
tg-user-monitor/gen_session.py

8 lines
192 B
Python
Raw Normal View History

2026-02-22 20:59:51 +08:00
from pyrogram import Client
api_id = int(input("API_ID: "))
api_hash = input("API_HASH: ")
with Client("user", api_id=api_id, api_hash=api_hash) as app:
print("Session 生成成功!")