mirror of
https://github.com/marcogll/telegram_new_socias.git
synced 2026-01-13 13:15:16 +00:00
refactor: Implement dynamic conversation flow builder from JSON
This commit refactors the bot's architecture to dynamically load and build conversation flows from JSON files instead of hardcoding them in Python. - Added to read flow definitions from the directory and dynamically build s. - Refactored to use the new flow builder and load all conversation handlers at startup. - Moved hardcoded links to environment variables for better configuration. - Updated to support conditional branching for 'Other' options, using a field to define state transitions. - Updated with the new link variables.
This commit is contained in:
@@ -13,6 +13,15 @@ WEBHOOK_PERMISOS=url
|
||||
WEBHOOK_PRINTS=url
|
||||
WEBHOOK_SCHEDULE=url
|
||||
|
||||
# ===============================
|
||||
# LINKS
|
||||
# ===============================
|
||||
LINK_CURSOS=https://cursos.vanityexperience.mx/dashboard-2/
|
||||
LINK_SITIO=https://vanityexperience.mx/
|
||||
LINK_AGENDA_IOS=https://apps.apple.com/us/app/fresha-for-business/id1455346253
|
||||
LINK_AGENDA_ANDROID=https://play.google.com/store/apps/details?id=com.fresha.Business
|
||||
|
||||
|
||||
# ===============================
|
||||
# DATABASE SETUP
|
||||
# ===============================
|
||||
|
||||
Reference in New Issue
Block a user