mirror of
https://github.com/marcogll/telegram_new_socias.git
synced 2026-01-13 05:15:14 +00:00
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.
50 lines
1.4 KiB
Plaintext
50 lines
1.4 KiB
Plaintext
# Configuración de Telegram
|
|
TELEGRAM_TOKEN=TU_TOKEN_NUEVO_AQUI
|
|
TELEGRAM_ADMIN_CHAT_ID=TELEGRAM_ADMIN_CHAT_ID
|
|
OPENAI_API_KEY=sk-proj-xxxx
|
|
GOOGLE_API_KEY=AIzaSyBqH5... # Usado para Gemini AI en modules/ai.py
|
|
|
|
# ===============================
|
|
# WEBHOOKS
|
|
# ===============================
|
|
WEBHOOK_ONBOARDING=url
|
|
WEBHOOK_VACACIONES=url
|
|
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
|
|
# ===============================
|
|
MYSQL_HOST=db
|
|
MYSQL_USER=user
|
|
MYSQL_PASSWORD=password
|
|
MYSQL_ROOT_PASSWORD=rootpassword
|
|
|
|
# Database Names
|
|
MYSQL_DATABASE_USERS_ALMA=USERS_ALMA
|
|
MYSQL_DATABASE_VANITY_HR=vanity_hr
|
|
MYSQL_DATABASE_VANITY_ATTENDANCE=vanity_attendance
|
|
|
|
# ===============================
|
|
# EMAIL SETUP
|
|
# ===============================
|
|
SMTP_SERVER=smtp.hostinger.com
|
|
SMTP_PORT=587
|
|
SMTP_USER=your_email@example.com
|
|
SMTP_PASSWORD=your_password
|
|
IMAP_SERVER=imap.hostinger.com
|
|
IMAP_PORT=993
|
|
IMAP_USER=your_email@example.com
|
|
IMAP_PASSWORD=your_password
|
|
PRINTER_EMAIL=your_printer_email@example.com
|