INNER CODE UNIT · Python
Bot
MrMKN/PROFESSOR-BOT · bot.py:17
class Bot(Client):
def __init__(self):
super().__init__(
name="Professor-Bot",
api_id=API_ID,
api_hash=API_HASH,
bot_token=BOT_TOKEN,
plugins=dict(root="plugins")
)
async def start(self):
b_users, b_chats = await db.get_banned()
temp.BANNED_USERS = b_users
temp.BANNED_CHATS = b_chats
await super().start()
await Media.ensure_indexes()
me = await self.get_me()