fix: исправлен callback_data для кнопки создания розыгрыша
All checks were successful
continuous-integration/drone/push Build is passing

- Изменён callback_data с 'create_lottery' на 'admin_create_lottery'
- Теперь кнопка в /start корректно вызывает обработчик из admin_panel.py
- Исправлена ошибка 'Update is not handled' для callback создания розыгрыша
This commit is contained in:
2025-11-22 19:21:51 +09:00
parent e39ef96b26
commit 007274785f

View File

@@ -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)