-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f9a669
commit 9498ff4
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import os | ||
|
||
os.system("pip install 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 #EAGLEBOT STRING SESSION \nPaste this string in Heroku Var", | ||
) | ||
|
||
else: | ||
print("ʙsᴅᴋ ʀᴇᴘᴏ ᴍᴇ sᴛʀɪɴɢ ᴍᴀᴛ ʀᴀᴋʜɴᴀ ᴠᴀʀɴᴀ ɪᴅ ᴄʜᴏᴅɪ ᴊᴀᴇ ɢɪ") | ||
|