Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -36,9 +36,15 @@ from config import *
|
|
36 |
import google.generativeai as genai
|
37 |
from google.api_core.exceptions import InvalidArgument
|
38 |
|
39 |
-
|
40 |
-
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
client = Client(
|
44 |
api_id=API_ID,
|
|
|
36 |
import google.generativeai as genai
|
37 |
from google.api_core.exceptions import InvalidArgument
|
38 |
|
39 |
+
import os
|
40 |
+
from os import getenv
|
41 |
+
|
42 |
+
from dotenv import load_dotenv
|
43 |
+
|
44 |
+
load_dotenv()
|
45 |
+
API_ID = os.environ["API_ID"]
|
46 |
+
API_HASH = os.environ["API_HASH"]
|
47 |
+
BOT_TOKEN = os.environ["BOT_TOKEN"]
|
48 |
|
49 |
client = Client(
|
50 |
api_id=API_ID,
|