mirror of
https://github.com/catspace-dev/unicheckbot.git
synced 2024-11-15 18:56:33 +03:00
11 lines
246 B
Python
11 lines
246 B
Python
|
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")
|