add event add
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user