|
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: ")
|
|
|
|
with TelegramClient(StringSession(), api_id, api_hash) as client:
|
|
print(client.session.save())
|