This commit is contained in:
2025-08-17 14:15:46 +09:00
parent 5592014530
commit e5c3f79d2e
8 changed files with 1074 additions and 511 deletions

View File

@@ -59,10 +59,7 @@ def build_app() -> Application:
States.TPL_NEW_FORMAT: [CallbackQueryHandler(wizard.tpl_new_format, pattern=r"^tplfmt:")],
States.TPL_NEW_CONTENT: [MessageHandler(filters.TEXT & ~filters.COMMAND, wizard.tpl_new_content)],
States.TPL_NEW_KB: [MessageHandler(filters.TEXT & ~filters.COMMAND, wizard.tpl_new_kb)],
States.TPL_CONFIRM_DELETE: [
CallbackQueryHandler(wizard.tpl_delete_ok, pattern=r"^tpldelok:"),
CallbackQueryHandler(wizard.choose_template_cancel, pattern=r"^tpl:cancel$"),
],
},
fallbacks=[CommandHandler("start", wizard.start)],
)
@@ -71,6 +68,7 @@ def build_app() -> Application:
app.add_handler(post_conv)
app.add_handler(tpl_conv)
app.add_handler(CommandHandler("tpl_list", wizard.tpl_list))
app.add_handler(CallbackQueryHandler(wizard.tpl_delete_ok, pattern=r"^tpldelok:"))
return app