Spaces:
Running
Running
Create config.py
Browse files
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)
|