feat: Add /create_tag command for generating NFC data

This commit introduces a new `/create_tag` command that initiates a conversational flow to collect user data and generate a Base64-encoded JSON string for NFC tag creation.

- Adds a new module `app/modules/create_tag.py` with a `ConversationHandler` to manage the multi-step data collection.
- Prompts the user for `name`, `num_emp`, `sucursal`, and `telegram_id`.
- Generates a Base64-encoded JSON string from the collected data.
- Integrates the new command into `app/main.py`.
This commit is contained in:
google-labs-jules[bot]
2025-12-18 04:02:26 +00:00
parent ce30e5591e
commit 9e7e093409
2 changed files with 89 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ from modules.aprobaciones import view_pending, handle_approval_action
from modules.servicios import get_service_info
from modules.admin import get_system_status
from modules.print import print_handler
from modules.create_tag import create_tag_conv_handler
from scheduler import schedule_daily_summary
# Enable logging
@@ -105,6 +106,7 @@ def main() -> None:
)
application.add_handler(conv_handler)
application.add_handler(create_tag_conv_handler())
application.add_handler(CommandHandler("start", start))
application.add_handler(CommandHandler("print", print_handler))
application.add_handler(CallbackQueryHandler(button_dispatcher))