randydev commited on
Commit
3615c7b
1 Parent(s): 85445bc

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +9 -3
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
- API_ID = 0
40
- API_HASH = ""
41
- BOT_TOKEN = ""
 
 
 
 
 
 
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,