Skip to content

Commit

Permalink
Merge pull request subinps#19
Browse files Browse the repository at this point in the history
Added support for local .env
  • Loading branch information
subinps authored Jul 26, 2022
2 parents 23be00f + 87816c8 commit dd1f007
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import os
from instaloader import Instaloader
from dotenv import load_dotenv

load_dotenv()

class Config:
API_ID = int(os.environ.get("API_ID", ""))
API_HASH = os.environ.get("API_HASH", "")
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pyrogram==1.4.15
tgcrypto
python-dotenv==0.20.0
instaloader
pyromod
pytz
Expand Down

0 comments on commit dd1f007

Please sign in to comment.