-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathbot.py
27 lines (23 loc) · 867 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
# ©️biisal jai shree krishna 😎
from pyrogram.client import Client
from info import *
class Bot(Client):
def __init__(self):
super().__init__( # type:ignore
name="Bisal Gptt",
api_id=API_ID,
api_hash=API_HASH,
bot_token=BOT_TOKEN,
workers=200,
plugins={"root": "plugins"},
sleep_threshold=15,
)
async def start(self): # type:ignore
await super().start()
me = await self.get_me()
print(f"{me.first_name} Iꜱ Sᴛᴀʀᴛᴇᴅ.....✨️")
await self.send_message(ADMIN, f"**__{me.first_name} Iꜱ Sᴛᴀʀᴛᴇᴅ.....✨️__**")
async def stop(self, *args): # type:ignore
await super().stop()
print("Bᴏᴛ Iꜱ Sᴛᴏᴘᴘᴇᴅ....")
Bot().run() # type:ignore