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