text: import time
  import uvloop
  import asyncio
  import importlib
  from pytgcalls import idle
  from pyrogram import Client
  from .YukkiUtilities.tgcallsrun import run
  from Yukki import BOT_NAME, ASSNAME, app, chacha, aiohttpsession
  from motor.motor_asyncio import AsyncIOMotorClient as MongoClient
  from Yukki.YukkiUtilities.database.functions import clean_restart_stage
  from Yukki.YukkiUtilities.database.queue import (get_active_chats, remove_active_chat)
  from .config import API_ID, API_HASH, BOT_TOKEN, MONGO_DB_URI, SUDO_USERS, LOG_GROUP_ID
  
  
  Client(
      ':mega:',
      API_ID,
      API_HASH,
      bot_token=BOT_TOKEN,
      plugins={'root': 'Yukki.Plugins'},
  ).start()
  
  
  print(f"[INFO]: BOT STARTED AS {BOT_NAME}!")
  print(f"[INFO]: ASSISTANT STARTED AS {ASSNAME}!")
  
  
  async def load_start():
      restart_data = await clean_restart_stage()
      if restart_data:
          print("[INFO]: SENDING RESTART STATUS")
          try:
              await app.edit_message_text(
                  restart_data["chat_id"],
                  restart_data["message_id"],
                  "✅ **bot restarted successfully.**",
              )
          except Exception:
              pass
      served_chats = []
      try:
          chats = await get_active_chats()
          for chat in chats:
              served_chats.append(int(chat["chat_id"]))
      except Exception as e:
          print("Error came while clearing db")
      for served_chat in served_chats:
          try:
              await remove_active_chat(served_chat)                                         
          except Exception as e:
              print("Error came while clearing db")
              pass     
      await app.send_message(LOG_GROUP_ID, "-1001453740906")
      await chacha.send_message(LOG_GROUP_ID, "-1001453740906")
      print("[INFO]: VEEZ MEGA CLIENT STARTED")
      
     
  loop = asyncio.get_event_loop()
  loop.run_until_complete(load_start())
  run()
  idle()
  
  loop.close()
  print("[INFO]: BOT & USERBOT STOPPED")
  