From 27540385634158f2d9703ad7d11229c86d00ea14 Mon Sep 17 00:00:00 2001 From: Daniil Tolstykh Date: Wed, 3 Apr 2024 20:02:58 +0400 Subject: [PATCH] fixed callback bug --- src/bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bot.py b/src/bot.py index 59bb878..992b9cd 100644 --- a/src/bot.py +++ b/src/bot.py @@ -265,6 +265,7 @@ async def process_image(message: types.Message): @dp.callback_query(aiogram.F.func(lambda call: call.data.startswith("yolo"))) +@auth async def callback_model(call: types.CallbackQuery): """ Callback function to handle model keyboard buttons. @@ -283,6 +284,7 @@ async def callback_model(call: types.CallbackQuery): @dp.callback_query(aiogram.F.func(lambda call: call.data.startswith("language"))) +@auth async def callback_language(call: types.CallbackQuery): """ Callback function to handle language keyboard buttons. @@ -301,6 +303,7 @@ async def callback_language(call: types.CallbackQuery): @dp.callback_query(aiogram.F.func(lambda call: call.data.startswith("color"))) +@auth async def callback_color_scheme(call: types.CallbackQuery): """ Callback function to handle color_scheme keyboard buttons. @@ -319,6 +322,7 @@ async def callback_color_scheme(call: types.CallbackQuery): @dp.callback_query(aiogram.F.func(lambda call: call.data.startswith("retina"))) +@auth async def callback_retina_masks(call: types.CallbackQuery): """ Callback function to handle retina_masks keyboard buttons.