diff --git a/apps/tgbot/config.py b/apps/tgbot/config.py new file mode 100644 index 0000000..3629903 --- /dev/null +++ b/apps/tgbot/config.py @@ -0,0 +1,10 @@ +import os + +from dotenv import load_dotenv + +dotenv_path = os.path.join(os.path.dirname(__file__), '.env') +if os.path.exists(dotenv_path): + load_dotenv(dotenv_path) + +# Loading token from .env +TELEGRAM_BOT_TOKEN = os.getenv("TELEGRAM_BOT_TOKEN")