forked from ah3653070/AstroUB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAstroSetup.py
More file actions
38 lines (33 loc) · 1.2 KB
/
Copy pathAstroSetup.py
File metadata and controls
38 lines (33 loc) · 1.2 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
import os
import time
print("WELCOME THERE✨❣️✨")
time.sleep(1)
print("THIS IS ONLINE STRING_SESSION GENERATOR")
from telethon.sync import TelegramClient
from telethon.sessions import StringSession
s = """
╔═══╦═══╦════╦═══╦═══╗
║╔═╗║╔═╗║╔╗╔╗║╔═╗║╔═╗║
║║─║║╚══╬╝║║╚╣╚═╝║║─║║
║╚═╝╠══╗║─║║─║╔╗╔╣║─║║
║╔═╗║╚═╝║─║║─║║║╚╣╚═╝║
╚╝─╚╩═══╝─╚╝─╚╝╚═╩═══╝
~ ASTROUserBot
"""
print(s)
print("")
APP_ID = int(input("Enter API ID here: "))
API_HASH = input("Enter API HASH here: ")
with TelegramClient(
StringSession(),
APP_ID,
API_HASH
)as siya:
print("")
print("Below is your STRING_SESSION")
print("")
print(siya.session.save())
print("")
print("You can't copy This from here..GO TO YOUR SAVED MESSAGE TO COPY\nIT Can BE FOUND THERE😊")
siya = siya.send_message("me", f"`{siya.session.save()}`")
siya.reply("The Above is the your `STRING_SESSION` FOR your **AstroUB**\nFor any kind of Help Join ~ @AstroUserBot")