-
Notifications
You must be signed in to change notification settings - Fork 932
/
Copy pathbot.py
36 lines (26 loc) · 896 Bytes
/
bot.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
# Don't Remove Credit Tg - @VJ_Botz
# Subscribe YouTube Channel For Amazing Bot https://youtube.com/@Tech_VJ
# Ask Doubt on telegram @KingVJ01
from pyrogram import Client
from config import API_ID, API_HASH, BOT_TOKEN
class Bot(Client):
def __init__(self):
super().__init__(
"techvj login",
api_id=API_ID,
api_hash=API_HASH,
bot_token=BOT_TOKEN,
plugins=dict(root="TechVJ"),
workers=50,
sleep_threshold=10
)
async def start(self):
await super().start()
print('Bot Started Powered By @VJ_Botz')
async def stop(self, *args):
await super().stop()
print('Bot Stopped Bye')
Bot().run()
# Don't Remove Credit Tg - @VJ_Botz
# Subscribe YouTube Channel For Amazing Bot https://youtube.com/@Tech_VJ
# Ask Doubt on telegram @KingVJ01