You've already forked Travel-Agent
feat: Added menu command
This commit is contained in:
+12
-5
@@ -6,9 +6,14 @@ from aiogram import Bot, Dispatcher
|
||||
from aiogram.enums import ParseMode
|
||||
from aiogram.fsm.storage.redis import RedisStorage
|
||||
|
||||
from app.callbacks import profile
|
||||
from app.callbacks import menu, profile
|
||||
from app.config import Config
|
||||
from app.handlers import help_command, profile_command, start_command
|
||||
from app.handlers import (
|
||||
help_command,
|
||||
menu_command,
|
||||
profile_command,
|
||||
start_command,
|
||||
)
|
||||
from app.middlewares.throttling import ThrottlingMiddleware
|
||||
|
||||
|
||||
@@ -23,12 +28,14 @@ async def main() -> None:
|
||||
bot = Bot(bot_token, parse_mode=ParseMode.HTML)
|
||||
|
||||
dp.message.middleware(ThrottlingMiddleware(0.5))
|
||||
# type: ignore
|
||||
|
||||
dp.include_routers(
|
||||
start_command.router,
|
||||
profile_command.router,
|
||||
profile.router, # type: ignore
|
||||
help_command.router,
|
||||
menu_command.router,
|
||||
profile_command.router,
|
||||
menu.router, # type: ignore
|
||||
profile.router, # type: ignore
|
||||
)
|
||||
|
||||
await bot.delete_webhook(drop_pending_updates=True)
|
||||
|
||||
Reference in New Issue
Block a user