from handlers import client, admin, other from aiogram import executor from create_bot import dp from data_base import sqlite_db async def on_startup(_): print("Бот вышел в онлайн") sqlite_db.sql_start() admin.register_handlers_client(dp) client.register_handlers_client(dp) other.register_handlers_other(dp) def main(): executor.start_polling(dp, skip_updates=True, on_startup=on_startup) if __name__ == '__main__': main()