forked from The-HellBot/OldPlugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhell_string.py
More file actions
20 lines (16 loc) · 727 Bytes
/
hell_string.py
File metadata and controls
20 lines (16 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import os
os.system("pip install telethon")
import telethon
from telethon.sessions import StringSession
from telethon.sync import TelegramClient
okvai = input("Enter 69 to continue: ")
if okvai == "69":
print("Please go to my.telegram.org and get your API Id and API Hash to proceed.")
APP_ID = int(input("Enter APP ID here: "))
API_HASH = input("Enter API HASH here: ")
with TelegramClient(StringSession(), APP_ID, API_HASH) as client:
print(client.session.save())
client.send_message("me", client.session.save())
client.send_message("me", "Above is your #HELLBOT_SESSION \nPaste this string in Heroku Var.\n\n[Team HellBot](t.me/the_hellbot)")
else:
print("Bhag jaa bhosdike")