diff --git a/app/generate_session_string.py b/app/generate_session_string.py new file mode 100644 index 0000000..9d1f258 --- /dev/null +++ b/app/generate_session_string.py @@ -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())