forked from TonyStarkBotz/TonyStark-Save-Restricted-Content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
35 lines (26 loc) · 958 Bytes
/
main.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
# Don't Remove Credit Tg - @TonyStark_Botz
# Subscribe YouTube Channel For Amazing Bot https://youtube.com/@TonyStarkBotz
# Ask Doubt on telegram @Tony_Stark_75
from pyrogram import Client
from pyromod import listen
from config import API_ID, API_HASH, BOT_TOKEN
class Bot(Client):
def __init__(self):
super().__init__(
"tonystark login",
api_id=API_ID,
api_hash=API_HASH,
bot_token=BOT_TOKEN,
plugins=dict(root="TonyStark"),
workers=50,
sleep_threshold=10
)
async def start(self):
await super().start()
print('Bot Started Powered By @TonyStarkBotz')
async def stop(self, *args):
await super().stop()
print('Bot Stopped Bye')
# Don't Remove Credit Tg - @TonyStark_Botz
# Subscribe YouTube Channel For Amazing Bot https://youtube.com/@TonyStarkBotz
# Ask Doubt on telegram @Tony_Stark_75