init
This commit is contained in:
commit
343169a973
8 changed files with 1783 additions and 0 deletions
12
create_session.py
Normal file
12
create_session.py
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue