mirror of
https://github.com/marcogll/talia_bot.git
synced 2026-01-13 21:35:19 +00:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user