mirror of
https://gitlab.com/octospacc/TelegramIndex-Fork.git
synced 2025-06-05 22:09:12 +02:00
new changes
This commit is contained in:
@@ -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())
|
||||
|
Reference in New Issue
Block a user