1
0
Fork 0
tg-proxy/create_session.py
2026-05-04 23:12:53 +03:00

12 lines
258 B
Python

import os
from pyrogram.client import Client
API_ID = int(os.getenv("API_ID", "0"))
API_HASH = os.getenv("API_HASH", "")
client = Client("tg_proxy", api_id=API_ID, api_hash=API_HASH, workdir="session")
with client:
me = client.get_me()
print(me)