diff --git a/handlers/commands.py b/handlers/commands.py index 09e38e8f..3ecebb00 100644 --- a/handlers/commands.py +++ b/handlers/commands.py @@ -8,10 +8,10 @@ router = Router() @router.message(Command("start")) -async def handle_start(message: types.Message, state: FSMContext, admin: bool): +async def handle_start(message: types.Message, state: FSMContext, admin: bool = False): await start_command(message, admin) @router.message(Command("menu")) -async def handle_menu(message: types.Message, state: FSMContext, admin: bool): +async def handle_menu(message: types.Message, state: FSMContext, admin: bool = False): await start_command(message, admin) diff --git a/handlers/start.py b/handlers/start.py index b9532340..15ae249a 100644 --- a/handlers/start.py +++ b/handlers/start.py @@ -55,7 +55,7 @@ async def send_welcome_message(chat_id: int, trial_status: int, admin: bool): ) -async def start_command(message: Message, admin: bool): +async def start_command(message: Message, admin: bool = False): logger.info(f"Received start command with text: {message.text}") if "referral_" in message.text: referrer_tg_id = int(message.text.split("referral_")[1])