Files
telegram-customer-bot/create_session.py
2025-11-01 21:58:31 +08:00

17 lines
305 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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()