chore: initial commit
This commit is contained in:
16
create_session.py
Normal file
16
create_session.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from pyrogram import Client
|
||||
|
||||
API_ID = 24660516
|
||||
API_HASH = "eae564578880a59c9963916ff1bbbd3a"
|
||||
|
||||
app = Client(
|
||||
"user_session",
|
||||
api_id=API_ID,
|
||||
api_hash=API_HASH
|
||||
)
|
||||
|
||||
print("开始创建session...")
|
||||
app.start()
|
||||
me = app.get_me()
|
||||
print(f"✅ Session创建成功!用户: {me.first_name}")
|
||||
app.stop()
|
||||
Reference in New Issue
Block a user