1
0
Fork 0
This commit is contained in:
Arthur K. 2026-05-04 23:12:53 +03:00
commit 343169a973
Signed by: wzray
GPG key ID: B97F30FDC4636357
8 changed files with 1783 additions and 0 deletions

12
create_session.py Normal file
View file

@ -0,0 +1,12 @@
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)