mirror of
https://gitlab.com/octospacc/TelegramIndex-Fork.git
synced 2025-06-05 22:09:12 +02:00
add generate_session_string
This commit is contained in:
8
app/generate_session_string.py
Normal file
8
app/generate_session_string.py
Normal file
@@ -0,0 +1,8 @@
|
||||
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())
|
Reference in New Issue
Block a user