mirror of
https://github.com/marcogll/talia_bot.git
synced 2026-01-13 13:25:19 +00:00
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:
@@ -1,4 +1,4 @@
|
||||
python-telegram-bot[job-queue]
|
||||
python-telegram-bot[job-queue]<22
|
||||
requests
|
||||
schedule
|
||||
google-api-python-client
|
||||
|
||||
Reference in New Issue
Block a user