mirror of
https://github.com/marcogll/talia_bot.git
synced 2026-01-13 21:35:19 +00:00
feat: Implement Phase 3 modules
- 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.
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
# app/modules/aprobaciones.py
|
||||
|
||||
def approve_request(request_id):
|
||||
def approve_request():
|
||||
"""
|
||||
Approves a request.
|
||||
Handles the owner's action to approve a request.
|
||||
"""
|
||||
print(f"Approving request {request_id}...")
|
||||
# TODO: Implement approval logic
|
||||
return "Request approved."
|
||||
# TODO: Implement the full approval workflow
|
||||
return "Has seleccionado aprobar una solicitud. Aquí tienes las solicitudes pendientes:\n\n[Lista de solicitudes...]"
|
||||
|
||||
def reject_request(request_id):
|
||||
def view_pending():
|
||||
"""
|
||||
Rejects a request.
|
||||
Shows the owner a list of pending requests.
|
||||
"""
|
||||
print(f"Rejecting request {request_id}...")
|
||||
# TODO: Implement rejection logic
|
||||
return "Request rejected."
|
||||
# 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"
|
||||
|
||||
Reference in New Issue
Block a user