randydev commited on
Commit
1a412cb
1 Parent(s): 93462fe

Create config.py

Browse files
Files changed (1) hide show
  1. config.py +10 -0
config.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ load_dotenv()
2
+ API_ID = os.getenv("API_ID")
3
+ API_HASH = os.getenv("API_HASH")
4
+ BOT_TOKEN = os.getenv("BOT_TOKEN")
5
+ GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
6
+
7
+ # Validate essential environment variables
8
+ if not all([API_ID, API_HASH, BOT_TOKEN, GOOGLE_API_KEY]):
9
+ LOGS.critical("Missing one or more essential environment variables.")
10
+ exit(1)