Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -13,18 +13,6 @@ from RyuzakiLib import GeminiLatest # and other imports as needed
|
|
13 |
import google.generativeai as genai
|
14 |
from google.api_core.exceptions import InvalidArgument
|
15 |
|
16 |
-
# Load environment variables
|
17 |
-
load_dotenv()
|
18 |
-
API_ID = os.getenv("API_ID")
|
19 |
-
API_HASH = os.getenv("API_HASH")
|
20 |
-
BOT_TOKEN = os.getenv("BOT_TOKEN")
|
21 |
-
GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
|
22 |
-
|
23 |
-
# Validate essential environment variables
|
24 |
-
if not all([API_ID, API_HASH, BOT_TOKEN, GOOGLE_API_KEY]):
|
25 |
-
LOGS.critical("Missing one or more essential environment variables.")
|
26 |
-
exit(1)
|
27 |
-
|
28 |
# Initialize Pyrogram Client
|
29 |
client = Client(
|
30 |
"chatbotai",
|
|
|
13 |
import google.generativeai as genai
|
14 |
from google.api_core.exceptions import InvalidArgument
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
# Initialize Pyrogram Client
|
17 |
client = Client(
|
18 |
"chatbotai",
|