From 007274785f630739bd42bacda593e05f253aa544 Mon Sep 17 00:00:00 2001 From: "Andrew K. Choi" Date: Sat, 22 Nov 2025 19:21:51 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20callback=5Fdata=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B8=20=D1=81=D0=BE=D0=B7=D0=B4?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=8F=20=D1=80=D0=BE=D0=B7=D1=8B=D0=B3=D1=80?= =?UTF-8?q?=D1=8B=D1=88=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Изменён callback_data с 'create_lottery' на 'admin_create_lottery' - Теперь кнопка в /start корректно вызывает обработчик из admin_panel.py - Исправлена ошибка 'Update is not handled' для callback создания розыгрыша --- src/components/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ui.py b/src/components/ui.py index 6ee4feb..0de955b 100644 --- a/src/components/ui.py +++ b/src/components/ui.py @@ -21,7 +21,7 @@ class KeyboardBuilderImpl(IKeyboardBuilder): if is_admin: buttons.extend([ [InlineKeyboardButton(text="⚙️ Админ панель", callback_data="admin_panel")], - [InlineKeyboardButton(text="➕ Создать розыгрыш", callback_data="create_lottery")] + [InlineKeyboardButton(text="➕ Создать розыгрыш", callback_data="admin_create_lottery")] ]) return InlineKeyboardMarkup(inline_keyboard=buttons)