File size: 335 Bytes
ab9cbe3 6c948e6 ab9cbe3 9dbb190 ab9cbe3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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")
HF_KEY = os.getenv("HF_KEY")
if not all([API_ID, API_HASH, BOT_TOKEN]):
LOGS.critical("Missing one or more essential environment variables.")
exit(1) |