Meta-AI / config.py
randydev's picture
Update config.py
9dbb190 verified
raw
history blame
349 Bytes
from logger import LOGS
import os
from dotenv import load_dotenv
load_dotenv()
API_ID = os.getenv("API_ID")
API_HASH = os.getenv("API_HASH")
BOT_TOKEN = os.getenv("BOT_TOKEN")
# Validate essential environment variables
if not all([API_ID, API_HASH, BOT_TOKEN]):
LOGS.critical("Missing one or more essential environment variables.")
exit(1)