unicheckbot/apps/tgbot/config.py

11 lines
246 B
Python
Raw Normal View History

2021-01-03 01:23:37 +03:00
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")