-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathstring_session.py
More file actions
62 lines (56 loc) · 3.23 KB
/
string_session.py
File metadata and controls
62 lines (56 loc) · 3.23 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
from telethon.sessions import StringSession
from telethon.sync import TelegramClient
import random
from colorama import Fore, Style, Back
kraken = """
╔╗──╔═══╦═══╦═══╦═╗─╔╦═══╦═══╦═══╦╗──╔╗ ╔═══╦═══╗ ╔═══╦╗─╔╦═══╦╗╔═╗
║║──║╔══╣╔═╗║╔══╣║╚╗║╠╗╔╗║╔═╗║╔═╗║╚╗╔╝║ ║╔═╗║╔═╗║ ║╔══╣║─║║╔═╗║║║╔╝
║║──║╚══╣║─╚╣╚══╣╔╗╚╝║║║║║║─║║╚═╝╠╗╚╝╔╝ ║║─║║╚══╗ ║╚══╣║─║║║─╚╣╚╝╝
║║─╔╣╔══╣║╔═╣╔══╣║╚╗║║║║║║╚═╝║╔╗╔╝╚╗╔╝ ║╚═╝╠══╗║ ║╔══╣║─║║║─╔╣╔╗║
║╚═╝║╚══╣╚╩═║╚══╣║─║║╠╝╚╝║╔═╗║║║╚╗─║║ ║╔═╗║╚═╝║ ║║──║╚═╝║╚═╝║║║╚╗
╚═══╩═══╩═══╩═══╩╝─╚═╩═══╩╝─╚╩╝╚═╝─╚╝ ╚╝─╚╩═══╝ ╚╝──╚═══╩═══╩╝╚═╝
"""
logo = """
╭╮╱╭╮╱╱╭╮╭╮╭━━╮╱╱╱╭╮
┃┃╱┃┃╱╱┃┃┃┃┃╭╮┃╱╱╭╯╰╮
┃╰━╯┣━━┫┃┃┃┃╰╯╰┳━┻╮╭╯
┃╭━╮┃┃━┫┃┃┃┃╭━╮┃╭╮┃┃
┃┃╱┃┃┃━┫╰┫╰┫╰━╯┃╰╯┃╰╮
╰╯╱╰┻━━┻━┻━┻━━━┻━━┻━╯
"""
baap_bolte = """
#ʟɛɢɛռɖaʀʏ ᴀғ ɦɛʟʟɮօt
Made With Love By Team HellBot
"""
print("")
print(Style.BRIGHT + Fore.MAGENTA + kraken)
print(Style.RESET_ALL)
print(Style.BRIGHT + Fore.BLUE + logo)
print(Style.RESET_ALL)
print(Style.BRIGHT + Fore.CYAN + Back.BLUE + baap_bolte)
print(Style.RESET_ALL)
print("""Welcome To HellBot String Generator By @SupRemE_AnanD""")
print("""Kindly Enter Your Details To Continue ! """)
API_KEY = input("API_KEY: ")
API_HASH = input("API_HASH: ")
while True:
try:
with TelegramClient(StringSession(), API_KEY, API_HASH) as client:
print("String Sent To Your Saved Message, Store It To A Safe Place!! ")
print("")
session = client.session.save()
client.send_message(
"me",
f"Here is your TELEGRAM STRING SESSION\n(Tap to copy it)👇 \n\n `{session}` \n\n And Visit @HellBot_Official For Any Help !",
)
print(
"Thanks for Choosing HellBot Have A Good Time....Note That When You Terminate the Old Session ComeBack And Genrate A New String Session Old One Wont Work"
)
except:
print("")
print(
"Wrong phone number \n make sure its with correct country code. Example : +919961998999 ! Kindly Retry"
)
print("")
continue
break