import asyncio from aiogram import Bot, Dispatcher from app.config import BOT_TOKEN from app.handlers.start import router as start_router from app.handlers.booking import router as booking_router from app.handlers.profile import router as profile_router from app.handlers.mybookings import router as mybooking_router from app.handlers.about import router as about_router from app.handlers.contacts import router as contacts_router from app.services.booking_service import ( create_booking, update_booking, get_busy_times ) async def main(): bot = Bot(token=BOT_TOKEN) dp = Dispatcher() # подключаем все роутеры dp.include_router(start_router) dp.include_router(booking_router) dp.include_router(profile_router) dp.include_router(mybooking_router) dp.include_router(about_router) dp.include_router(contacts_router) print("Bot started...") await dp.start_polling(bot) if __name__ == "__main__": asyncio.run(main())