forked from RISHISUPERYO-GAMERZ22/Black-Lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtelesetup.py
25 lines (23 loc) · 826 Bytes
/
telesetup.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
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 @black_lightning_channel For More Support."
)
print("⬆ Please Check Your Telegram Saved Message For Your String.")