forked from yusufer60/Telegram-Scrapper-Adder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
40 lines (32 loc) · 926 Bytes
/
setup.py
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
import os, sys
import configparser
re="\033[1;31m"
gr="\033[1;32m"
cy="\033[1;36m"
def banner():
os.system('clear')
print(f"""
{re}╔═╗{cy}┌─┐┌┬┐┬ ┬┌─┐
{re}╚═╗{cy}├┤ │ │ │├─┘
{re}╚═╝{cy}└─┘ ┴ └─┘┴
{cy}Developer - Kazama
""")
banner()
print(gr+"[+] Installing requierments ...")
os.system("python3 -m pip install telethon")
os.system("pip3 install telethon")
os.system("pip3 install -U telethon")
banner()
os.system("touch config.data")
cpass = configparser.RawConfigParser()
cpass.add_section('cred')
xid = input(gr+"[+] Enter API ID : "+re)
cpass.set('cred', 'id', xid)
xhash = input(gr+"[+] Enter API Hash : "+re)
cpass.set('cred', 'hash', xhash)
xphone = input(gr+"[+] Enter phone number : "+re)
cpass.set('cred', 'phone', xphone)
setup = open('config.data', 'w')
cpass.write(setup)
setup.close()
print(gr+"[+] Setup complete !")