File size: 461 Bytes
0560151
ec71eb2
 
0560151
1a412cb
 
 
 
 
f3ee4f4
1a412cb
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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")
GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
GOOGLE_API_SEARCH = os.getenv("GOOGLE_API_SEARCH")

# 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)