Fix start

This commit is contained in:
Zakhar Izmaylov
2024-11-17 15:44:41 +03:00
parent 6563b7dc67
commit 0766cda29e
2 changed files with 1 additions and 18 deletions
-17
View File
@@ -1,17 +0,0 @@
from aiogram import Router, types
from aiogram.filters import Command
from aiogram.fsm.context import FSMContext
from handlers.start import start_command
router = Router()
@router.message(Command("start"))
async def handle_start(message: types.Message, state: FSMContext, admin: bool):
await start_command(message, admin)
@router.message(Command("menu"))
async def handle_menu(message: types.Message, state: FSMContext, admin: bool):
await start_command(message, admin)
+1 -1
View File
@@ -56,7 +56,7 @@ async def send_welcome_message(chat_id: int, trial_status: int, admin: bool):
)
@router.message(Command("start"))
@router.message(Command("start"), Command("menu"))
async def start_command(message: Message, admin: bool):
logger.info(f"Received start command with text: {message.text}")
if "referral_" in message.text: