-
Notifications
You must be signed in to change notification settings - Fork 1
/
string_gen.py
31 lines (28 loc) · 1.08 KB
/
string_gen.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python3
# (c) https://t.me/TelethonChat/37677
# This Source Code Form is subject to the terms of the GNU
# General Public License, v.3.0. If a copy of the GPL was not distributed with this
# file, You can obtain one at https://www.gnu.org/licenses/gpl-3.0.en.html.
try:
from telethon.sessions import StringSession
from telethon.sync import TelegramClient
except BaseException:
print("Telethon Not Found. Installing Now.")
import os
os.system("pip3 install telethon")
from telethon.sessions import StringSession
from telethon.sync import TelegramClient
ok = """ ____ ____ __ ____ __ _ _
Thunder
"""
print(ok)
APP_ID = int(input("Enter APP ID here: \n"))
API_HASH = input("Enter API HASH here: \n")
client = TelegramClient(StringSession(), APP_ID, API_HASH)
with client:
session_str = client.session.save()
client.send_message("me", f"`{session_str}`")
client.send_message(
"THIS IS YOUR STRING SESSION \nJoin @DaisySupport_Official For More Support."
)
print("⬆ Please Check Your Telegram Saved Message For Your String.")