Skip to content

Commit

Permalink
Update telesetup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xditya authored Nov 4, 2020
1 parent d7ba7e6 commit a440123
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions telesetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,17 @@
Click on API Development Tools
Create a new application, by entering the required details
For TeleBot""")
print("")

APP_ID = int(input("Enter APP ID here: "))
API_HASH = input("Enter API HASH here: ")

with TelegramClient(StringSession(), APP_ID, API_HASH) as client:
tele = client.send_message("me", session_str)
tele.reply("The above is the `STRING_SESSION` for your current session.\n@TeleBotSupport")
print("")
print("")
print("Below is the STRING_SESSION. You can also find it in your Telegram Saved Messages.")
print("")
print("")
print(client.session.save())

0 comments on commit a440123

Please sign in to comment.