feat(training): summarize learned profile and add info button
This commit is contained in:
1 parent
26b533716a
commit
61c66def3f
7 files changed
+258
-4
No files matched your search
@@ -21,6 +21,8 @@ MAIN_MENU_BUTTON = "🏠 Главное меню"
|
||||
MAIN_MENU_VALUE = "__main_menu__"
|
||||
TRAINING_RESET_BUTTON = "🗑 Сбросить данные"
|
||||
TRAINING_RESET_VALUE = "__training_reset__"
|
||||
TRAINING_INFO_BUTTON = "ℹ️ Инфо"
|
||||
TRAINING_INFO_VALUE = "__training_info__"
|
||||
POST_GENERATE_BUTTON = "✍️ Придумать пост"
|
||||
SUPPORT_BUTTON = "🆘 Поддержка"
|
||||
SUPPORT_VALUE = "__support__"
|
||||
@@ -33,6 +35,7 @@ BUTTON_TEXT_MAP: dict[str, str] = {
|
||||
MAIN_MENU_BUTTON: MAIN_MENU_VALUE,
|
||||
"Главное меню": MAIN_MENU_VALUE,
|
||||
TRAINING_RESET_BUTTON: TRAINING_RESET_VALUE,
|
||||
TRAINING_INFO_BUTTON: TRAINING_INFO_VALUE,
|
||||
POST_GENERATE_BUTTON: "/post",
|
||||
SUPPORT_BUTTON: SUPPORT_VALUE,
|
||||
BUY_SUBSCRIPTION_BUTTON: SUBSCRIPTION_ACTION_VALUE,
|
||||
@@ -69,6 +72,7 @@ def mode_keyboard(
|
||||
input_field_placeholder="Опиши проблему или вернись в главное меню",
|
||||
)
|
||||
if mode == "training":
|
||||
rows.insert(0, [KeyboardButton(text=TRAINING_INFO_BUTTON)])
|
||||
rows.append([KeyboardButton(text=TRAINING_RESET_BUTTON)])
|
||||
elif mode == "generation":
|
||||
rows.insert(0, [KeyboardButton(text=POST_GENERATE_BUTTON)])
|
||||
|
||||
Reference in new issue
Block a user