add event add

This commit is contained in:
2024-12-22 15:26:30 +07:00
parent b80da75de8
commit 7402b64b58
6 changed files with 176 additions and 130 deletions
+4 -1
View File
@@ -6,7 +6,8 @@ from aiogram.types import BotCommand
from bot.bot import bot, storage
from bot.commands.help import router as help_router
from bot.commands.start import router as start_router
from bot.commands.user import router as user_router
from bot.commands.admin import router as admin_router
from bot.handlers.messages import router as user_router
async def set_commands(commands_bot: Bot):
@@ -31,9 +32,11 @@ async def main():
"""
print("Запуск бота...")
dp = Dispatcher(storage=storage)
dp.include_router(admin_router)
dp.include_router(start_router)
dp.include_router(help_router)
dp.include_router(user_router)
await set_commands(bot)
await dp.start_polling(bot)