from loader import bot

async def on_shutdown(dp):
    await bot.close()

if name =='__main__':
    from aiogram import executor
    from handlers import  dp

    executor.start_polling(dp, on_shutdown(=on_shutdown))