mirror of
https://gitlab.com/octospacc/TelegramIndex-Fork.git
synced 2025-02-21 14:00:50 +01:00
9 lines
271 B
Python
9 lines
271 B
Python
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())
|