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