-
Notifications
You must be signed in to change notification settings - Fork 58
/
client.py
25 lines (23 loc) · 815 Bytes
/
client.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
from info import *
from pyrogram import Client
from subprocess import Popen
User = Client(name="user", session_string=SESSION)
DlBot = Client(name="auto-delete",
api_id=API_ID,
api_hash=API_HASH,
bot_token=BOT_TOKEN)
class Bot(Client):
def __init__(self):
super().__init__(
"bot",
api_id=API_ID,
api_hash=API_HASH,
bot_token=BOT_TOKEN,
plugins={"root": "plugins"})
async def start(self):
await super().start()
await User.start()
Popen("python3 -m utils.delete", shell=True)
print("Bot Started 🔧 Powered By @TechnicalCynite")
async def stop(self, *args):
await super().stop()