new changes

This commit is contained in:
odysseusmax
2020-12-12 19:46:44 +05:30
parent 2fffd9353d
commit 2c0160b21e
15 changed files with 539 additions and 554 deletions

View File

@@ -1,8 +1,10 @@
import os
from telethon.sync import TelegramClient
from telethon.sessions import StringSession
api_id = int(input("Enter your API_ID: "))
api_hash = input("Enter your API_HASH: ")
api_id = int(os.environ.get('API_ID') or input("Enter your API_ID: "))
api_hash = os.environ.get('API_HASH') or input("Enter your API_HASH: ")
with TelegramClient(StringSession(), api_id, api_hash) as client:
print(client.session.save())