fix: resolve unresponsive bot by migrating to FlowEngine

The Telegram bot was becoming unresponsive due to a conflict between a legacy `ConversationHandler` for the `propose_activity` flow and the main `FlowEngine`. This was likely caused by breaking changes in the `python-telegram-bot` library.

This commit resolves the issue by:
1.  Removing the problematic `ConversationHandler` from `main.py` and its related functions from `modules/equipo.py`.
2.  Migrating the "propose activity" feature to a data-driven JSON flow (`crew_propose_activity.json`), making it compatible with the existing `FlowEngine`.
3.  Pinning the `python-telegram-bot` dependency to `<22` in `requirements.txt` to prevent future breakage from upstream updates.

This change ensures all conversational flows are handled consistently by the `FlowEngine`, restoring bot responsiveness and improving maintainability.
This commit is contained in:
google-labs-jules[bot]
2025-12-21 18:07:45 +00:00
parent 0c2c9fc524
commit 384e23cf58
4 changed files with 30 additions and 98 deletions

View File

@@ -1,4 +1,4 @@
python-telegram-bot[job-queue]
python-telegram-bot[job-queue]<22
requests
schedule
google-api-python-client