mirror of
https://github.com/marcogll/talia_bot.git
synced 2026-01-13 21:35:19 +00:00
- Implements `get_available_slots` to find open time slots. - Implements `create_event` to schedule new events. - Uses a service account for server-to-server authentication. - Adds `GOOGLE_SERVICE_ACCOUNT_FILE` and `CALENDAR_ID` to the configuration. - Updates `tasks.md` to reflect the completion of the integration. - Includes error handling for Google Calendar API calls.
13 lines
499 B
Python
13 lines
499 B
Python
# app/config.py
|
|
import os
|
|
|
|
TELEGRAM_BOT_TOKEN = os.getenv("TELEGRAM_BOT_TOKEN")
|
|
OWNER_CHAT_ID = os.getenv("OWNER_CHAT_ID")
|
|
ADMIN_CHAT_IDS = os.getenv("ADMIN_CHAT_IDS", "").split(",")
|
|
TEAM_CHAT_IDS = os.getenv("TEAM_CHAT_IDS", "").split(",")
|
|
GOOGLE_SERVICE_ACCOUNT_FILE = os.getenv("GOOGLE_SERVICE_ACCOUNT_FILE")
|
|
CALENDAR_ID = os.getenv("CALENDAR_ID")
|
|
N8N_WEBHOOK_URL = os.getenv("N8N_WEBHOOK_URL")
|
|
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
|
TIMEZONE = os.getenv("TIMEZONE", "America/Mexico_City")
|