mirror of
https://github.com/marcogll/talia_bot.git
synced 2026-01-13 21:35:19 +00:00
- Implements placeholder logic for the `agenda`, `citas`, `equipo`, `aprobaciones`, and `servicios` modules. - Integrates all new module functions into the `button` handler in `app/main.py` to make the bot's menus functional. - Fixes a newline formatting bug in the text responses to ensure they render correctly in Telegram. - Updates `tasks.md` to reflect the progress on Phase 3.
16 lines
596 B
Python
16 lines
596 B
Python
# app/modules/aprobaciones.py
|
|
|
|
def approve_request():
|
|
"""
|
|
Handles the owner's action to approve a request.
|
|
"""
|
|
# TODO: Implement the full approval workflow
|
|
return "Has seleccionado aprobar una solicitud. Aquí tienes las solicitudes pendientes:\n\n[Lista de solicitudes...]"
|
|
|
|
def view_pending():
|
|
"""
|
|
Shows the owner a list of pending requests.
|
|
"""
|
|
# TODO: Fetch pending requests
|
|
return "⏳ *Solicitudes Pendientes*\n\n- *Grabación de proyecto (4h)* - Solicitado por: Miembro del equipo A\n- *Taller de guion (2h)* - Solicitado por: Miembro del equipo B"
|